Fixed script bug
This commit is contained in:
parent
6eaa992f5f
commit
0be7dba5d3
12
build.gradle
12
build.gradle
|
@ -327,19 +327,19 @@ publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
if(isMavenCentral) {
|
if(isMavenCentral) {
|
||||||
def auth = System.getenv("Maven_Central_Auth").split(';');
|
def auth = System.getenv("Maven_Central_Auth")?.split(';');
|
||||||
url version.endsWith('SNAPSHOT') ? "https://s01.oss.sonatype.org/content/repositories/snapshots/" : "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
|
url version.endsWith('SNAPSHOT') ? "https://s01.oss.sonatype.org/content/repositories/snapshots/" : "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
|
||||||
credentials {
|
credentials {
|
||||||
username auth[0]
|
username auth?[0]
|
||||||
password auth[1]
|
password auth?[1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
def auth = System.getenv("Speiger_Maven_Auth").split(';');
|
def auth = System.getenv("Speiger_Maven_Auth")?.split(';');
|
||||||
url version.endsWith('SNAPSHOT') ? "https://maven.speiger.com/repository/debug" : "https://maven.speiger.com/repository/main"
|
url version.endsWith('SNAPSHOT') ? "https://maven.speiger.com/repository/debug" : "https://maven.speiger.com/repository/main"
|
||||||
credentials(PasswordCredentials) {
|
credentials(PasswordCredentials) {
|
||||||
username auth[0]
|
username auth?[0]
|
||||||
password auth[1]
|
password auth?[1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue