applicationDefaultJvmArgs is exactly what is needed to configure the JVM when using ‘gradle run’, however it is very difficult to find this option. http://www.gradle.org/docs/1.7/release-notes#specify-default-jvm-arguments-for-the-application-plugin is the only place where I was able to find it, with quite a bit of noise along the way. Ideally this option would be documented at http://www.gradle.org/docs/current/userguide/application_plugin.html. Thanks.
Chapter 45: Gradle Application Plugin documentation does not cover applicationDefaultJvmArgs property added in Gradle 1.7
Hey Chris, thanks for reporting this. Currently this option is only listed in the Gradle DSL reference (http://www.gradle.org/docs/current/dsl/org.gradle.api.Project.html#N1394A). I added a small paragraph to the userguide and the application plugin sample application