Skip to content

Commit

Permalink
Build: Made gradlew script executable in the source distro
Browse files Browse the repository at this point in the history
  • Loading branch information
ddekany committed Dec 27, 2023
1 parent 663925c commit fd46e5f
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -482,7 +481,7 @@ val distSrc = tasks.register<Tar>("distSrc") {
"*.txt",
"osgi.bnd",
"rat-excludes",
"gradlew*",
"gradlew.bat",
"gradle/**"
)
exclude(
Expand All @@ -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())
}
Expand Down

0 comments on commit fd46e5f

Please sign in to comment.