Skip to content

Commit 8bd229f

Browse files
committed
sonatype requires new urls for publishing
1 parent 60bb5a5 commit 8bd229f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ See [here][oap-docs].
1515

1616
# snapshot repository
1717

18-
to use snapshot versions add `https://oss.sonatype.org/content/repositories/snapshots` as maven repository to your build file.
18+
to use snapshot versions add `https://central.sonatype.com/repository/maven-snapshots` as maven repository to your build file.
1919

2020

2121
[oap-central]: https://search.maven.org/search?q=io.openapiprocessor

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repositories {
1818
mavenLocal()
1919
mavenCentral()
2020
maven {
21-
url = "https://oss.sonatype.org/content/repositories/snapshots"
21+
url = "https://central.sonatype.com/content/repositories/snapshots"
2222
}
2323
}
2424

gradle/publishing.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ publishing {
4949

5050
repositories {
5151
maven {
52-
def releaseRepository = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
53-
def snapshotRepository = uri("https://oss.sonatype.org/content/repositories/snapshots")
52+
def releaseRepository = uri("https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2")
53+
def snapshotRepository = uri("https://central.sonatype.com/repository/maven-snapshots")
5454
url = project.isReleaseVersion ? releaseRepository : snapshotRepository
5555

5656
credentials {
@@ -76,6 +76,9 @@ nexusPublishing {
7676
sonatype() {
7777
username = publishUser
7878
password = publishKey
79+
80+
nexusUrl = uri("https://ossrh-staging-api.central.sonatype.com/service/local/")
81+
snapshotRepositoryUrl = uri("https://central.sonatype.com/repository/maven-snapshots/")
7982
}
8083
}
8184
}

0 commit comments

Comments
 (0)