diff --git a/build.gradle b/build.gradle index d279295ad..81b03f356 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,7 @@ buildscript { plugins { id 'java-platform' id 'com.github.kt3k.coveralls' version '2.12.0' - id 'io.codearte.nexus-staging' version '0.30.0' + id 'io.github.gradle-nexus.publish-plugin' version '1.1.0' id 'io.franzbecker.gradle-lombok' version '4.0.0' } @@ -27,10 +27,15 @@ project.ext.publishEnabled = !isCiBuild && project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword') if (publishEnabled) { - nexusStaging { - username = ossrhUsername - password = ossrhPassword - stagingProfileId = '6c61426e6529d' + nexusPublishing { + repositories { + sonatype { + stagingProfileId = '6c61426e6529d' + + username = ossrhUsername + password = ossrhPassword + } + } } } @@ -258,17 +263,6 @@ subprojects { project -> } } } - - repositories { - maven { - name = "sonatypeNexus" - url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" - credentials { - username ossrhUsername - password ossrhPassword - } - } - } } signing { @@ -319,17 +313,6 @@ if (publishEnabled) { } } } - - repositories { - maven { - name = "sonatypeNexus" - url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" - credentials { - username ossrhUsername - password ossrhPassword - } - } - } } signing { diff --git a/doc/releasing.md b/doc/releasing.md index 29cb85188..016a4b4b4 100644 --- a/doc/releasing.md +++ b/doc/releasing.md @@ -25,7 +25,7 @@ Release candidate versions 5. Publish to Sonatype Nexus: ``` - $ ./gradlew publish closeAndReleaseRepository + $ ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository ``` 6. Wait for the artifacts to become downloadable at @@ -112,7 +112,7 @@ Release versions 9. Publish to Sonatype Nexus: ``` - $ ./gradlew publish closeAndReleaseRepository + $ ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository ``` 10. Wait for the artifacts to become downloadable at