We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84c820e commit eb223f1Copy full SHA for eb223f1
1 file changed
build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt
@@ -88,8 +88,10 @@ class PublishingConventionPlugin : Plugin<Project> {
88
}
89
repositories {
90
maven {
91
- val releasesRepoUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
92
- val snapshotsRepoUrl = uri("https://oss.sonatype.org/content/repositories/snapshots/")
+ val releasesRepoUrl =
+ uri("https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/")
93
+ val snapshotsRepoUrl =
94
+ uri("https://central.sonatype.com/repository/maven-snapshots/")
95
url = if (project.version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
96
credentials {
97
username = project.findProperty("sonatypeToken") as String?
0 commit comments