Skip to content

Commit

Permalink
Update publishing Url
Browse files Browse the repository at this point in the history
  • Loading branch information
e5l committed Dec 7, 2021
1 parent 755304c commit 05d8386
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ tasks.withType(AbstractPublishToMaven).all {
def publishingUser = System.getenv('PUBLISHING_USER')
def publishingPassword = System.getenv('PUBLISHING_PASSWORD')
def publishingUrl = System.getenv("PUBLISHING_URL")
def repositoryId = System.getenv("REPOSITORY_ID")

if (repositoryId != null) {
println("Using predefined repository: $repositoryId")
publishingUrl = "https://oss.sonatype.org/service/local/staging/deployByRepositoryId/$repositoryId"
} else {
println("Can't get predefined repository, using default $publishingUrl")
}

publishing {
repositories {
Expand Down

0 comments on commit 05d8386

Please sign in to comment.