diff --git a/build-logic/plugins/src/main/kotlin/PublishingConventionPlugin.kt b/build-logic/plugins/src/main/kotlin/PublishingConventionPlugin.kt index eae0aa9f..45380812 100644 --- a/build-logic/plugins/src/main/kotlin/PublishingConventionPlugin.kt +++ b/build-logic/plugins/src/main/kotlin/PublishingConventionPlugin.kt @@ -117,6 +117,7 @@ class PublishingConventionPlugin : Plugin { repositories { maven { + name = "ossrh-staging-api" url = if (isReleaseBuild) releaseRepositoryUrl else snapshotRepositoryUrl credentials { username = sonatypeUsername @@ -148,7 +149,7 @@ class PublishingConventionPlugin : Plugin { get() = URI.create( getPropertyOrDefault( "RELEASE_REPOSITORY_URL", - "https://aws.oss.sonatype.org/service/local/staging/deploy/maven2/" + "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/" ) ) @@ -156,7 +157,7 @@ class PublishingConventionPlugin : Plugin { get() = URI.create( getPropertyOrDefault( "SNAPSHOT_REPOSITORY_URL", - "https://aws.oss.sonatype.org/content/repositories/snapshots/" + "https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots/" ) )