File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ def isReleaseBuild() {
2525
2626def getReleaseRepositoryUrl () {
2727 return hasProperty(' RELEASE_REPOSITORY_URL' ) ? RELEASE_REPOSITORY_URL :
28- " https://aws.oss .sonatype.org /service/local/staging/deploy/maven2/"
28+ " https://ossrh-staging-api.central .sonatype.com /service/local/staging/deploy/maven2/"
2929}
3030
3131def getSnapshotRepositoryUrl () {
3232 return hasProperty(' SNAPSHOT_REPOSITORY_URL' ) ? SNAPSHOT_REPOSITORY_URL :
33- " https://aws.oss. sonatype.org/content/repositories/ snapshots/"
33+ " https://central. sonatype.com/repository/maven- snapshots/"
3434}
3535
3636def getRepositoryUsername () {
@@ -103,6 +103,7 @@ afterEvaluate { project ->
103103 }
104104 repositories {
105105 maven {
106+ name = " ossrh-staging-api"
106107 url = isReleaseBuild() ? getReleaseRepositoryUrl() : getSnapshotRepositoryUrl()
107108 credentials {
108109 username = getRepositoryUsername()
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ dependencyResolutionManagement {
2424 repositoriesMode.set(RepositoriesMode .FAIL_ON_PROJECT_REPOS )
2525 repositories {
2626 maven {
27- url = uri(" https://aws.oss. sonatype.org/content/repositories/ snapshots/" )
27+ url = uri(" https://central. sonatype.com/repository/maven- snapshots/" )
2828 }
2929 google()
3030 mavenCentral()
You can’t perform that action at this time.
0 commit comments