turansky
04/15/2021, 8:49 PMjvmargs
, which declared in gradle.properties
:
org.gradle.jvmargs=-Xmx2g
to have less memory on CI only?Vampire
04/15/2021, 9:26 PM~/.gradle/gradle.properties
or via commandline argument it should overwrite the gradle.properties
value in the root project directory.turansky
04/15/2021, 9:36 PM./gradlew build -Dorg.gradle.jvmargs=-Xmx8g
Vampire
04/15/2021, 9:37 PM-P
.
Except if the same is considered as system property too, for some this is the case, not sure whether for that one, just try it. 🙂tapchicoma
04/16/2021, 9:08 AMGRADLE_USER_HOME
which will contain gradle.properties
with jvmargs override