Skip to content
This repository was archived by the owner on May 5, 2024. It is now read-only.

Commit 354ae81

Browse files
committed
Remove the 'release' file produced by jlink
1 parent 25963ef commit 354ae81

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

build.gradle

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,14 @@ tasks.withType(JavaCompile) {
176176
options.encoding = "UTF-8"
177177
}
178178

179+
/*
180+
* Remove the "release" file produced by jlink
181+
*/
182+
jre {
183+
doLast {
184+
delete file("${buildDir}/jre/release")
185+
}
186+
}
179187

180188
/*
181189
* Set the basic Java runtime parameters (heap size etc.)
@@ -217,7 +225,7 @@ startScripts {
217225
* Build the JVM runtime using jlink
218226
*/
219227
runtime {
220-
options = ["--compress=2", "--vm=server", "--no-header-files", "--no-man-pages"]
228+
options = ["--compress=2", "--vm=server", "--no-header-files", "--no-man-pages", "--output", "jre/jre"]
221229
modules = ["java.desktop",
222230
"java.logging",
223231
"java.rmi",

0 commit comments

Comments
 (0)