Merge pull request #2546 from open-osrs/env-vars-publish

gradle: use environment variables for publishing
This commit is contained in:
ThatGamerBlue
2020-05-02 13:56:34 +01:00
committed by GitHub

View File

@@ -135,12 +135,12 @@ subprojects {
maven { maven {
url = uri("$buildDir/repo") url = uri("$buildDir/repo")
} }
if (System.getProperty("REPO-URL") != null) { if (System.getenv("REPO_URL") != null) {
maven { maven {
url = uri(System.getProperty("REPO-URL")) url = uri(System.getenv("REPO_URL"))
credentials { credentials {
username = System.getProperty("REPO-USERNAME") username = System.getenv("REPO_USERNAME")
password = System.getProperty("REPO-PASSWORD") password = System.getenv("REPO_PASSWORD")
} }
} }
} }