I am using Gradle Application Plugin to run a main class. I know we can provide VM args using applicationDefaultJvmArgs
. When I try to run the code using IntelliJ gradle run configs(or an external shell script) as gradle run
by providing VM args -Dfoo=bar, they are not used in applicationDefaultJvmArgs
.
How can I append external VM args to those specified in applicationDefaultJvmArgs
?