I'd like to save my keystore outside the project directory. I don't want to store filepaths inside the repository so I delegated the values to appropriate gradle variables in ~/.gradle/gradle.properties
I can't get gradle to accept an absolute path like:
/Users/username/.gradle/keystores/project/release.key
or
~/.gradle/keystores/project/release.key
I tried:
storeFile file(RELEASE_STORE_FILE)
and
storeFile new File(RELEASE_STORE_FILE)
none of them seems to work, however.
How can I pass an absolute path value to the keystore file through RELEASE_STORE_FILE variable?
android {
signingConfigs {
release {
storeFile file(RELEASE_STORE_FILE)
storePassword RELEASE_STORE_PASS
keyAlias RELEASE_ALIAS
keyPassword RELEASE_KEY_PASS
}
}
}
and the ~/.gradle/gradle.properties file:
RELEASE_STORE_FILE=/Users/username/.gradle/keystores/project/release.key
RELEASE_STORE_PASS=******
RELEASE_ALIAS=******
RELEASE_KEY_PASS=******
In short: I want to pass an absolute path value to gradle.