`-PpropertyName=value`
# gradle
g
-PpropertyName=value
👍 1
t
My idea was to not provide every property via command line, but have two
gradle.properties
that can be used for common development and for android releases
like having additional
release.gradle.properties
and use it only for release buids
f
Maybe you could conditionally
apply from "release.gradle.properties
? http://mrhaki.blogspot.com/2015/10/gradle-goodness-apply-external-script.html
t
I don't think so, this is usually for adding Gradle script files
f
oops,
.properties
, my bad
g
Just do that manually, pass command line option from CLI, then just read required file with config. It's not a Gradle properties, but you can manually register them as Gradle property if you want. Use standard Java Properties class to parse config file
🤔 1
t
I think I will go with using
--gradle-user-home
command line option pointing to different folders with
gradle.properties
inside. Per documentation
gradle.properties
in user home overrides project
gradle.properties
.