Skip to content

Commit 8d0aedd

Browse files
authored
chore: Update sonatype endpoint for publishing (#239)
1 parent ab7ba13 commit 8d0aedd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ class PublishingConventionPlugin : Plugin<Project> {
117117

118118
repositories {
119119
maven {
120+
name = "ossrh-staging-api"
120121
url = if (isReleaseBuild) releaseRepositoryUrl else snapshotRepositoryUrl
121122
credentials {
122123
username = sonatypeUsername
@@ -148,15 +149,15 @@ class PublishingConventionPlugin : Plugin<Project> {
148149
get() = URI.create(
149150
getPropertyOrDefault(
150151
"RELEASE_REPOSITORY_URL",
151-
"https://aws.oss.sonatype.org/service/local/staging/deploy/maven2/"
152+
"https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
152153
)
153154
)
154155

155156
private val Project.snapshotRepositoryUrl: URI
156157
get() = URI.create(
157158
getPropertyOrDefault(
158159
"SNAPSHOT_REPOSITORY_URL",
159-
"https://aws.oss.sonatype.org/content/repositories/snapshots/"
160+
"https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots/"
160161
)
161162
)
162163

0 commit comments

Comments
 (0)