Skip to content

Commit

Permalink
Fixed script bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Speiger committed Mar 29, 2024
1 parent 6eaa992 commit 0be7dba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -327,19 +327,19 @@ publishing {
repositories {
maven {
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/"
credentials {
username auth[0]
password auth[1]
username auth?[0]
password auth?[1]
}
}
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"
credentials(PasswordCredentials) {
username auth[0]
password auth[1]
username auth?[0]
password auth?[1]
}
}
}
Expand Down

0 comments on commit 0be7dba

Please sign in to comment.