Skip to content

Commit 5bcd3a0

Browse files
authored
chore: Update sonatype endpoint for publishing (#3663)
* chore: Update sonatype endpoint for publishing * change group name to the testing namespace for testing * Revert "change group name to the testing namespace for testing" This reverts commit b46c340.
1 parent 1aedcb1 commit 5bcd3a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

publishing.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ def isSnapshotBuild() {
3030

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

3636
def getSnapshotRepositoryUrl() {
3737
return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL :
38-
"https://aws.oss.sonatype.org/content/repositories/snapshots/"
38+
"https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots/"
3939
}
4040

4141
def getRepositoryUsername() {
@@ -59,6 +59,7 @@ afterEvaluate { project ->
5959
pom.artifactId = POM_ARTIFACT_ID
6060
pom.version = getVersionName()
6161

62+
name = 'ossrh-staging-api'
6263
repository(url: getReleaseRepositoryUrl()) {
6364
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
6465
}

0 commit comments

Comments
 (0)