Hi all!
Does anyone know if there is any extra trick to override some Android-related gradle.properties when running a gradle build from a command-line?
For example this:
does not seem to have any effect on my builds, like it's ignored 🤔
v
Vampire
01/05/2023, 1:57 PM
You are after
-P
which sets Gradle properties, not
-D
which sets system properties
s
scana
01/05/2023, 1:59 PM
Thanks! So would
org.gradle.unsafe.configuration-cache
be considered a system property then?
v
Vampire
01/05/2023, 2:00 PM
Some few properties need to be set as system property instead of Gradle property when set from the command line as they are needed eariler in the run than the Gradle properties are available. That one could well be one of those.
s
scana
01/05/2023, 2:00 PM
I see - thanks!
v
Vampire
01/05/2023, 2:01 PM
jvm properties for the daemon is probably another of these