Skip to content

javafx-gradle-plugin 8.6.0

Compare
Choose a tag to compare
@FibreFoX FibreFoX released this 31 Aug 17:23

This is a very special release, because it contains a workaround for a very nasty bug inside the JDK on Windows-systems when using DAEMON-mode. It was the very first time I had to do some JVM-bytecode analysis and using ASM for the first time for "hacking" something existing before using it. As Gradle 3 now uses daemon mode per default, it became mandatory to finally find some working fix for it ... but the real fix should come from Oracle, it even got reported by me, but as the javapackager is built with short-living JVMs, this will take its time to get fixed.

For further information about how this works, please take a look into the MonkeyPatcher-class.

Another thing to mention: this time an enhancement was implemented/integrated and released before the javafx-maven-plugin got it, namely the adjustments for the jfxRun-task, this does not mean that the javafx-maven-plugin gets less attention from me.

If something does NOT work with the new fixes, please report these as seperated issues.

Happy coding! eats-cake 🍰

New:

  • added alternativePathToJarFile-property to specify the jar-file which gets used for javafx-jar-transformation
  • added usePatchedJFXAntLib-property to disable gradle daemon workaround of the JDK-bug (which might be required when patching does result in crashing the JVM)
  • added useEnvironmentRelativeExecutables-property to change the executables being used from the JDK instead of environment-relative (which could differ due to multiple local java-installations)
  • added possibility to adjust java-command used for jfxRun-task: it is now possible to pass parameters to your jfx-application
  • added possibility to adjust java-command used for jfxRun-task: it is now possible to pass parameters to the java-executable, e.g. to specify some javassist-module or other JVM-related stuff (like Xmx or other funny things)

Bugfixes:

  • fixed issue #29 and #30 regarding stdout/stderr not printed when Gradle is in daemon mode (which is default for Gradle 3 now)
  • fixed issue #12 regarding gradle daemon mode: IT IS NOW SUPPORTED

Changes:

  • removed the usage of skipDaemonModeCheck-property, please remove this from your configuration/buildscript (will be removed in the next minor-release)
  • the javafx-gradle-plugin now requires ASM being present on classpath of the buildscript for being able to work around the JDK-bug (https://bugs.openjdk.java.net/browse/JDK-8148717)

Enhancements:

  • fixed issue #26 by providing a way to specify jar-file used for javapackager
  • updated proguard example using new alternativePathToJarFile-property
  • updated README.md to show minimal setup and other stuff