Skip to content

Commit a5fbd97

Browse files
committed
feat: migrate from OSSRH to central repository
1 parent 01db552 commit a5fbd97

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/publish.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ publishing {
1313
repositories {
1414
maven {
1515
name = "sonatype"
16-
def releaseUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
17-
def snapshotUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
16+
def releaseUrl = "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
17+
def snapshotUrl = "https://central.sonatype.com/repository/maven-snapshots/"
1818
url = version.endsWith('-SNAPSHOT') ? snapshotUrl : releaseUrl
1919
credentials {
2020
username = rootProject.ext["ossrhUsername"]

scripts/setup.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ nexusPublishing {
2929
stagingProfileId = sonatypeStagingProfileId
3030
username = ossrhUsername
3131
password = ossrhPassword
32-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
33-
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
32+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
33+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
3434
}
3535
}
3636
}

0 commit comments

Comments
 (0)