Skip to content

Commit 57b6776

Browse files
authored
chore: migrated new Maven Central URL (#716)
1 parent f9c4b7e commit 57b6776

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ class PublishingConventionPlugin : Plugin<Project> {
8888
}
8989
repositories {
9090
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/")
91+
val releasesRepoUrl =
92+
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/")
9395
url = if (project.version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
9496
credentials {
9597
username = project.findProperty("sonatypeToken") as String?

0 commit comments

Comments
 (0)