plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.1.0'
id 'org.beryx.runtime' version '1.13.1'
}
application {
mainClass = "org.example.hellofx.Launcher"
applicationName = 'hellofx'
}
javafx {
version = "24.0.2"
modules = [
'javafx.controls',
'javafx.fxml'
]
}
runtime {
options = [ '--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages' ]
modules = [ 'java.naming', 'java.xml' ]
}
The subsection for
Modular with Maven|Gradleare using the Badass JLink Plugin (org.beryx.jlink).For Non-modular projects there is the Badass Runtime Plugin that could be used instead to create a runtime image.
https://badass-runtime-plugin.beryx.org