diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e0dbd79e..e750a79f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,7 +53,7 @@ jobs: OSSATUBER_PASSWORD: ${{ secrets.OSSATUBER_PASSWORD }} OSSATUBER_USERNAME: ${{ secrets.OSSATUBER_USERNAME }} run: | # TODO old way of setting the properties from environment variables in gradle - ./gradlew publishToSonatype closeSonatypeStagingRepository --info \ + ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --info \ -Psigning.keyId="${SIGNING_KEY_ID}" \ -Psigning.password="${SIGNING_PASSWORD}" \ -Psigning.key="${SIGNING_KEY}" \ diff --git a/build.gradle b/build.gradle index 22dc4466f..f57c0add2 100644 --- a/build.gradle +++ b/build.gradle @@ -299,9 +299,9 @@ publishing { password ossrhPassword } if(project.version.endsWith('-SNAPSHOT')) { - url 'https://oss.sonatype.org/content/repositories/snapshots/' + url 'https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots/' } else { - url 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' + url 'https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/' } } } @@ -312,8 +312,8 @@ nexusPublishing { sonatype { username.set(ossrhUsername) password.set(ossrhPassword) - nexusUrl.set(uri("https://oss.sonatype.org/service/local/")) - snapshotRepositoryUrl.set(uri("https://oss.sonatype.org/content/repositories/snapshots/")) + nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/")) + snapshotRepositoryUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots/")) } } }