Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. task jlink(type: Exec, dependsOn: ['clean', 'jar', 'libs']) {
  2.  
  3. def javaHome = System.properties.'java.home'
  4.  
  5. workingDir 'build'
  6.  
  7. commandLine "${javaHome}/bin/jlink",
  8. '--module-path', "$libs${File.pathSeparatorChar}$rootDir/modlibs${File.pathSeparatorChar}${javaHome}/jmods",
  9. '--strip-debug', '--no-header-files', '--no-man-pages', '--compress', '2',
  10. '--add-modules', "${moduleName}",
  11. '--launcher', "start=${moduleName}/${moduleLaunchPoint}",
  12. '--output', 'dist'
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement