Reputation: 5417
I'm using Gradle 3.1.2 and I have the following situation.
buildscript {
repositories {
maven { url repository }
}
...
In the gradle.properties
file the entry is
repository=https://my.url
I now want to move this property entry to the local.properties
file, since it should not be committed into vcs. But gradle
cannot seem to find it when it is in local.properties
.
Where do I need to place the property so gradle
can find it but its not in vcs.
Upvotes: 12
Views: 11135
Reputation: 141
As in https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties described you could use a grade.properties file in your GRADLE_USER_HOME directory (default $HOME/.gradle).
Upvotes: 10