gradle: use environment variables for publishing

This commit is contained in:
ThatGamerBlue
2020-05-02 13:31:18 +01:00
committed by GitHub
parent 4b00994a89
commit 440eafd926

View File

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