diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index d385b08..c1ccfc9 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,3 +1,6 @@ +# 3.5.2 +* Fixing binary executable permission + # 3.5.1 * Generating native-image binary diff --git a/VERSION b/VERSION index d5c0c99..87ce492 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.5.1 +3.5.2 diff --git a/build.gradle b/build.gradle index 4bc285d..cc5e53b 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,3 @@ -import java.nio.file.Files import java.nio.file.Paths import java.time.LocalDateTime import java.util.concurrent.Executors @@ -134,7 +133,7 @@ task copyStatics() { def binFilePath = "${project.buildDir}/native-image/" def distPath = Paths.get("${binFilePath}/dist") - deleteRecursively(distPath) + ant.delete(dir: "${distPath}") /** * Copying static files @@ -151,24 +150,12 @@ task copyStatics() { * Create a distribution file */ ant.zip(destfile: "${distPath}/${project.name}.zip") { - zipfileset("dir": binFilePath) + zipfileset(dir: binFilePath, filemode: "755", includes: project.name) + zipfileset(dir: binFilePath, excludes: project.name) } } } -static void deleteRecursively(java.nio.file.Path distPath) { - Files.createDirectories(distPath) - Files.walk(distPath) - .sorted(Comparator.reverseOrder()) - .forEach({ - try { - Files.deleteIfExists(it) - } catch (IOException e) { - throw new UncheckedIOException(e) - } - }) -} - task heartbeat() { doLast() { Executors.newSingleThreadExecutor().submit({