You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by dd...@apache.org on 2023/12/28 23:36:49 UTC

(freemarker) branch 2.3-gae updated: (Build: bit of code cleanup)

This is an automated email from the ASF dual-hosted git repository.

ddekany pushed a commit to branch 2.3-gae
in repository https://gitbox.apache.org/repos/asf/freemarker.git


The following commit(s) were added to refs/heads/2.3-gae by this push:
     new 6543e507 (Build: bit of code cleanup)
6543e507 is described below

commit 6543e507f8c19f6ca8fcae3ed9f08fa324863472
Author: ddekany <dd...@apache.org>
AuthorDate: Fri Dec 29 00:10:25 2023 +0100

    (Build: bit of code cleanup)
---
 build.gradle.kts | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/build.gradle.kts b/build.gradle.kts
index 64a034e7..6e6f1f93 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -39,8 +39,7 @@ tasks.withType<JavaCompile>().configureEach {
     options.encoding = "UTF-8"
 }
 
-tasks.withType<AbstractArchiveTask>().configureEach {
-  if (archiveFileName.get().endsWith(".jar")) {
+tasks.withType<Jar>().configureEach {
     // make contents of freemarker.jar reproducible
     isPreserveFileTimestamps = false
     isReproducibleFileOrder = true
@@ -50,7 +49,6 @@ tasks.withType<AbstractArchiveTask>().configureEach {
     dirPermissions {
         unix("rwxr-xr-x")
     }
-  }
 }
 
 freemarkerRoot {