Skip to content

Commit 365dcee

Browse files
committed
sonatype requires new urls for publishing
1 parent 9498e0e commit 365dcee

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-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
@@ -17,7 +17,7 @@ repositories {
1717
mavenLocal ()
1818
mavenCentral ()
1919
maven {
20-
url "https://oss.sonatype.org/content/repositories/snapshots"
20+
url = "https://central.sonatype.com/repository/maven-snapshots"
2121
}
2222
}
2323

gradle/publishing.gradle

Lines changed: 2 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 {

0 commit comments

Comments
 (0)