javafx-gradle-plugin
javafx-gradle-plugin copied to clipboard
Graal AOT compilation not working, probably due to the JFX plugin
I have reason to believe that there is a problem with the javafx-gradle-plugin that causes it not to work with Graal Native.
To compile a JavaFX application natively, one usually needs to run an application with Graal's tracing agent to generate configuration files that can then be provided to the Graal compiler.
This works with both Maven and even Scala's sbt, but when doing this with a Gradle project, this error occurs:
Graphics device initialization failed for : d3d, sw or rather Graphics device initialization failed for : es2, sw.
Gluon will tell you to use the Gluon plugin instead of the Graal plugin, but that shouldn't be necessary at all, because as I mentioned before, it works with both sbt and Maven and even with Gluon's Gradle plugin it won`t work and you have to switch to SWRendering.