Fix auth parameters for remote maven repository
@@ -25,11 +25,10 @@ publishing {
println "PUBLISH repoKey is terasology-snapshot-local (default value)"
}
+ if (rootProject.hasProperty("mavenUser") && rootProject.hasProperty("mavenPass")) {
credentials {
- if (rootProject.hasProperty("artifactoryUser") && rootProject.hasProperty("artifactoryPass")) {
- username = "$artifactoryUser"
- password = "$artifactoryPass"
- }
+ username = "$mavenUser"
+ password = "$mavenPass"
}
authentication {
basic(BasicAuthentication)
@@ -39,4 +38,5 @@ publishing {
}
}
}
+}
