Skip to content

Commit 4c562e5

Browse files
committed
sonatype requires new urls for publishing
(cherry picked from commit 5c1149e)
1 parent 3f93eda commit 4c562e5

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ nexusPublishing {
3434
sonatype {
3535
username.set(publishUser)
3636
password.set(publishKey)
37+
38+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
39+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
3740
}
3841
}
3942
}

buildSrc/src/main/kotlin/openapiprocessor.publish.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ publishing {
4949
repositories {
5050
maven {
5151
val releasesRepoUrl = "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2"
52-
val snapshotsRepoUrl = "https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots"
52+
val snapshotsRepoUrl = "https://central.sonatype.com/repository/maven-snapshots"
5353
url = uri(if (isReleaseVersion()) releasesRepoUrl else snapshotsRepoUrl)
5454

5555
credentials {

0 commit comments

Comments
 (0)