From eee5630e2ae62efe5b0d56ec54d3b93a5ef10f1f Mon Sep 17 00:00:00 2001 From: Anton Keks Date: Thu, 20 Jan 2022 00:34:01 +0200 Subject: [PATCH] simplify jlink command-line (not all options are present on Windows) --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index cade9c0e..7bb33aa0 100644 --- a/build.gradle +++ b/build.gradle @@ -308,7 +308,7 @@ task 'win-installer'(dependsOn: ['win32', 'win64']) { def jrePath = "AppFiles/jre" if (!new File(installerDir, jrePath).exists()) { ant.exec(dir: installerDir, executable: "jlink", failOnError: true) { - ("--output $jrePath --vm=client --compress=2 --no-header-files --no-man-pages --strip-debug --strip-java-debug-attributes --strip-native-debug-symbols exclude-debuginfo-files --dedup-legal-notices error-if-not-same-content " + + ("--output $jrePath --vm=client --compress=2 --no-header-files --no-man-pages --strip-debug " + "--add-modules java.base,java.desktop,java.prefs,java.logging") .split(" ").each { ant.arg(value: it) } }