diff --git a/build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt b/build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt index 7cd066c1..758a7bf2 100644 --- a/build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt +++ b/build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt @@ -88,11 +88,7 @@ class PublishingConventionPlugin : Plugin { } repositories { maven { - 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 + url = uri("https://central.sonatype.com/repository/maven-snapshots/") credentials { username = project.findProperty("sonatypeToken") as String? password = project.findProperty("sonatypeTokenPassword") as String?