I need to add default JVM options to my jar, when build with Gradle. From the documentation I got that I have to set:
applicationDefaultJvmArgs = [\"-Djavafx
you can use command-line with gradle task:
class AppRun extends JavaExec {
private boolean withDebug
@Option(option = "with-debug", description = "enable debug for the process. ")
public void setDebugMode(boolean debug) {
this.withDebug = debug
}
public boolean getDebugMode() {
return this.withDebug
}
}
task run(type: AppRun) {
}
then run task with options
gradle run --with-debug