Skip to content

Commit 68a0648

Browse files
Update sonatype deploy URLs.
1 parent daa8628 commit 68a0648

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

build.gradle.kts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,8 @@ publishing {
5151
repositories {
5252
maven {
5353
credentials(PasswordCredentials::class)
54-
name = "sonatype" // correlates with the environment variable set in the github action release.yml publish job
55-
56-
val releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
57-
val snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
58-
setUrl(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
54+
name = "ossrh-staging-api"
55+
setUrl("https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/")
5956
}
6057
}
6158

@@ -116,8 +113,8 @@ signing {
116113
nexusPublishing {
117114
repositories {
118115
sonatype {
119-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
120-
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
116+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
117+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
121118
}
122119
}
123120
}

0 commit comments

Comments
 (0)