Remove the 'release' file produced by jlink
@@ -176,6 +176,14 @@ tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
+/*
+ * Remove the "release" file produced by jlink
+ */
+jre {
+ doLast {
+ delete file("${buildDir}/jre/release")
+ }
+}
/*
* Set the basic Java runtime parameters (heap size etc.)
@@ -217,7 +225,7 @@ startScripts {
* Build the JVM runtime using jlink
*/
runtime {
- options = ["--compress=2", "--vm=server", "--no-header-files", "--no-man-pages"]
+ options = ["--compress=2", "--vm=server", "--no-header-files", "--no-man-pages", "--output", "jre/jre"]
modules = ["java.desktop",
"java.logging",
"java.rmi",
