diff --git a/build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt b/build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt index 80139f7f..7cd066c1 100644 --- a/build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt +++ b/build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt @@ -88,8 +88,10 @@ class PublishingConventionPlugin : Plugin { } repositories { maven { - val releasesRepoUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/") - 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/") + val snapshotsRepoUrl = + uri("https://central.sonatype.com/repository/maven-snapshots/") url = if (project.version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl credentials { username = project.findProperty("sonatypeToken") as String?