I am using the Java plugin for gradle.
How do I pass in some vm arguments to the >gradle test
command?
The arguments can be in the build.gradle as I always want them passed in.
Thanks
I am using the Java plugin for gradle.
How do I pass in some vm arguments to the >gradle test
command?
The arguments can be in the build.gradle as I always want them passed in.
Thanks
Specify the jvmArgs
argument for the test
task.
test {
jvmArgs '-XX:MaxPermSize=256m'
}
From the Gradle documentation:
jvmArgs The extra arguments to use to launch the JVM for the process. Does not include system properties and the minimum/maximum heap size.
apply plugin: 'java' // adds 'test' task
test {
// set JVM arguments for the test JVM(s)
jvmArgs '-XX:MaxPermSize=256m'
}