See usage example in the fxldemo-gradle demo project
The plugin supports the following tasks:
- copyAppDependencies: Assembles the application into
build/fxlauncher
- generateApplicationManifest: Generates app.xml into
build/fxlauncher
- embedApplicationManifest: Copies app.xml into
fxlauncher.jar
- deployApp: Transfers application to
deployTarget
via scp - generateNativeInstaller: Generates native installer
Configuration example:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'no.tornado:fxlauncher-gradle-plugin:1.0.16'
}
}
apply plugin: 'no.tornado.fxlauncher'
fxlauncher {
applicationVendor 'My Company'
applicationUrl 'http://host/path'
applicationMainClass 'com.example.Application'
deployTarget 'username@hostname:path'
}
Please note that the deployApp
task requires the scp binary to be present in your path, and that you have installed the corresponding target host key locally and the public key on the target
Optionally include scpOptions = ['-v']
to enable verbose output from scp if you run into trouble.
If you need to further customize the parameters to javapackager
you can supply the javapackagerOptions
parameter, which takes a List<String>
. Consult
the JavaPackager docs for more information about possible parameters.
lingeringUpdateScreen true