Skip to content

Commit c14e005

Browse files
authored
chore: Update sonatype endpoint for publishing (#3071)
1 parent 038707a commit c14e005

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

configuration/publishing.gradle

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

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

3131
def getSnapshotRepositoryUrl() {
3232
return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL :
33-
"https://aws.oss.sonatype.org/content/repositories/snapshots/"
33+
"https://central.sonatype.com/repository/maven-snapshots/"
3434
}
3535

3636
def getRepositoryUsername() {
@@ -103,6 +103,7 @@ afterEvaluate { project ->
103103
}
104104
repositories {
105105
maven {
106+
name = "ossrh-staging-api"
106107
url = isReleaseBuild() ? getReleaseRepositoryUrl() : getSnapshotRepositoryUrl()
107108
credentials {
108109
username = getRepositoryUsername()

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencyResolutionManagement {
2424
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
2525
repositories {
2626
maven {
27-
url = uri("https://aws.oss.sonatype.org/content/repositories/snapshots/")
27+
url = uri("https://central.sonatype.com/repository/maven-snapshots/")
2828
}
2929
google()
3030
mavenCentral()

0 commit comments

Comments
 (0)