Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task jlink(type: Exec, dependsOn: ['clean', 'jar', 'libs']) {
- def javaHome = System.properties.'java.home'
- workingDir 'build'
- commandLine "${javaHome}/bin/jlink",
- '--module-path', "$libs${File.pathSeparatorChar}$rootDir/modlibs${File.pathSeparatorChar}${javaHome}/jmods",
- '--strip-debug', '--no-header-files', '--no-man-pages', '--compress', '2',
- '--add-modules', "${moduleName}",
- '--launcher', "start=${moduleName}/${moduleLaunchPoint}",
- '--output', 'dist'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement