Skip to content

Commit 3178222

Browse files
authored
chore: Update sonatype endpoint for publishing (#431)
1 parent 6560636 commit 3178222

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gradle-mvn-push.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ def isReleaseBuild() {
2626

2727
def getReleaseRepositoryUrl() {
2828
return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL :
29-
"https://aws.oss.sonatype.org/service/local/staging/deploy/maven2/"
29+
"https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
3030
}
3131

3232
def getSnapshotRepositoryUrl() {
3333
return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL :
34-
"https://aws.oss.sonatype.org/content/repositories/snapshots/"
34+
"https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots/"
3535
}
3636

3737
def getRepositoryUsername() {
@@ -55,6 +55,7 @@ afterEvaluate { project ->
5555
pom.artifactId = POM_ARTIFACT_ID
5656
pom.version = VERSION_NAME
5757

58+
name = 'ossrh-staging-api'
5859
repository(url: getReleaseRepositoryUrl()) {
5960
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
6061
}

0 commit comments

Comments
 (0)