Skip to content

Commit 5c1149e

Browse files
committed
sonatype requires new urls for publishing
1 parent e25d6a4 commit 5c1149e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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)