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 fd46e5f4 Build: Made gradlew script executable in the source distro
fd46e5f4 is described below

commit fd46e5f4afdc3df66c64f587278e9b5886af1cec
Author: ddekany <[email protected]>
AuthorDate: Wed Dec 27 17:38:17 2023 +0100

    Build: Made gradlew script executable in the source distro
---
 build.gradle.kts | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/build.gradle.kts b/build.gradle.kts
index be443d8d..3734bdd9 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -40,8 +40,7 @@ tasks.withType<JavaCompile>().configureEach {
 }
 
 tasks.withType<AbstractArchiveTask>().configureEach {
-
-  if (archiveFileName.get().endsWith(".jar")) {  
+  if (archiveFileName.get().endsWith(".jar")) {
     // make contents of freemarker.jar reproducible
     isPreserveFileTimestamps = false
     isReproducibleFileOrder = true
@@ -482,7 +481,7 @@ val distSrc = tasks.register<Tar>("distSrc") {
                 "*.txt",
                 "osgi.bnd",
                 "rat-excludes",
-                "gradlew*",
+                "gradlew.bat",
                 "gradle/**"
         )
         exclude(
@@ -495,7 +494,15 @@ val distSrc = tasks.register<Tar>("distSrc") {
         )
     }
 
-    // Depend on the createBuildInfo task and include the generated file
+    from(projectDir) {
+        include(
+            "gradlew"
+        )
+        filePermissions {
+            unix("rwxr-xr-x")
+        }
+    }
+
     dependsOn(createBuildInfo)
     from(buildInfoFile())
 }

Reply via email to