We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 32264fc + 5277672 commit fcb3cdfCopy full SHA for fcb3cdf
1 file changed
scripts/publish-module.gradle.kts
@@ -48,9 +48,9 @@ afterEvaluate {
48
repositories {
49
maven {
50
name = "OSSRH"
51
- val releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
52
- val snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
53
- url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
+ // New Sonatype Central Portal uses unified endpoint for both releases and snapshots
+ val repoUrl = "https://central.sonatype.com/api/v1/publisher/upload?publishingType=AUTOMATIC"
+ url = uri(repoUrl)
54
55
credentials {
56
username = findProperty("ossrhUsername") as String? ?: System.getenv("OSSRH_USERNAME")
0 commit comments