Gradle run doesn't honor applicationDefaultJvmArgs


If you use the application plugin and set applicationDefaultJvmArgs, when you run gradle distZip and look at the shell scripts, DEFAULT_JVM_OPTS is set to what your builds script specifies (all good).

When you just run gradle run the same arguments are not applied when gradle executes the application.

Is this expected? The documentation indicates it should apply to the run command.

1 Like