Skip to content

Commit

Permalink
adjust gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Ski committed Aug 15, 2024
1 parent dc17f37 commit b1139a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ ext {

getReleaseRepositoryUrl = {
return project.hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
}

getSnapshotRepositoryUrl = {
return project.hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
: "https://oss.sonatype.org/content/repositories/snapshots/"
: "https://s01.oss.sonatype.org/content/repositories/snapshots/"
}

getRepositoryUsername = {
return project.hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : ""
return project.hasProperty('NEXUS_USERNAME') ? project.findProperty("NEXUS_USERNAME") : ""
}

getRepositoryPassword = {
return project.hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
return project.hasProperty('NEXUS_PASSWORD') ? project.findProject("NEXUS_PASSWORD") : ""
}
}

Expand Down

0 comments on commit b1139a7

Please sign in to comment.