In build.gradle
we can define variables like:
def libVersion='someVersion'
We can override properties in command line with -PlibVersion=otherVersion
Unfortunately it seems this command line option does not effect local variables defined in build.gradle
. Is there a way to override these from command line? Please note that for some reasons i do not want to create settings.gradle
nor gradle.properties
files.