Colton Idle
06/30/2025, 6:57 PMorg.gradle.jvmargs= -Xmx12g -Xms4g
set in our android project in the gradle.properties for the repo. Can I override that easily without having to commit those changes to my entire team? I'd love to bump the 12g down to 6g.
Everything I'm reading basically says that the project ones will take pretty much the highest priority, but that seems weird as if theres no way to update it to my personal prefs without affecting the whole teamTrevJonez
06/30/2025, 7:07 PMMatthew Von-Maszewski
06/30/2025, 7:33 PMorg.gradle.daemon=false
org.gradle.jvmargs=-Xmx4g
Then the settings are universal on my machine. I never have to remember for git checkout.Markus Maier
07/01/2025, 5:56 AMThomas Broyer
07/01/2025, 9:38 AMMarkus Maier
07/01/2025, 10:30 AMMarkus Maier
07/01/2025, 10:31 AMColton Idle
07/01/2025, 2:30 PMThomas Broyer
07/01/2025, 3:45 PM-PfooUsername=
to set repository credentials and it worked, whereas according to the docs I should have probably used `-DfooUsername=`; I think maybe providers.gradleProperty()
even returns so-called project properties (set with -P
) so this is very blurry…. (I admit not doing any experimentation before writing this though)Colton Idle
07/01/2025, 7:16 PMColton Idle
07/01/2025, 9:44 PMMarkus Maier
07/02/2025, 6:56 AM~/.gradle
is the default for $GRADLE_USER_HOME
, and one way to read the Location cell of Priority 3 is that this has precedence over Project root dir which in turn has precedence over $GRADLE_HOME
(which is the gradle distribution, but IIRC only possible if you use a custom one)Thomas Broyer
07/02/2025, 7:29 AMThomas Broyer
07/02/2025, 7:30 AMColton Idle
07/03/2025, 8:43 PM