gradle-launch4j icon indicating copy to clipboard operation
gradle-launch4j copied to clipboard

Sample Scripts

Open aaiezza opened this issue 7 years ago • 4 comments

This might be more of a nice idea for a wiki page, but I would really like a nice community dumping ground for working gradle build scripts utilizing launch4j. I definitely have one to contribute that I used for my master's thesis, but I'm looking to expand my knowledge of gradle and especially the usage of this plugin. Thanks, Alex

aaiezza avatar Jan 12 '17 11:01 aaiezza

If you like we can add examples as subprojects to the source code or link to your repository. Also that should help in #42 .

TheBoegl avatar Jan 13 '17 13:01 TheBoegl

I tried to setup a script to build a javafx 12 windows native program without luck. Means including javafx jmods and the jre. Any samples out there?

solarisx avatar Mar 23 '19 23:03 solarisx

@solarisx I've got this with a project here (minus JavaFX jmods though): https://github.com/IdiosApps/gradedReaderBuilder/commit/6a212a68760b0ba6f418e68e80a32776e9e84655

Feel free to reference this @aaiezza @TheBoegl

james-s-w-clark avatar Apr 26 '19 23:04 james-s-w-clark

I tried to setup a script to build a javafx 12 windows native program without luck. Means including javafx jmods and the jre. Any samples out there?

If I understand correctly, you can't actually bundle the JRE (in the .exe) - the following commands just point to a JRE and affect how it's used:

 bundledJrePath = 'C:\\Program Files\\Java\\jdk-12.0.1'
 bundledJre64Bit = true

more info at https://github.com/TheBoegl/gradle-launch4j/issues/64#issuecomment-347540288

I'm going to go for the following option myself - keeps the download lightweight, and links to a lightweight JRE if needed:

 jreMinVersion = "12.0.1"
 messagesJreVersionError = "Please install JDK12 from https://adoptopenjdk.net/releases.html?variant=openjdk12"

james-s-w-clark avatar May 05 '19 15:05 james-s-w-clark