I have an application. I run it via
gradlew run-app
Or debug
gradlew debug-app
It works. How do I pass \'-Xm
Using application plugin one can use applicationDefaultJvmArgs property
apply plugin: 'application' applicationDefaultJvmArgs = ["-Xms1024m", "-Xmx2048m"]
The arguments will be applied to run task and to start script of your application
more info