diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 64b8a7e..21d08ff 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -105,13 +105,13 @@ jobs: with: java-version: ${{ env.JAVA_REFERENCE_VERSION }} distribution: 'temurin' - server-id: ossrh + server-id: central server-username: SONATYPE_USER server-password: SONATYPE_PASS # gpg-private-key: ${{ secrets.GPG_KEY }} # gpg key was already added in the first java-setup phase, will fail the cleanup if added again gpg-passphrase: GPG_PASS - name: Deploy to Maven Central - run: mvn -DskipTests --no-transfer-progress --batch-mode -Drevision=${REVISION} -Dsha1=${SHA1} -Dchangelist=${CHANGELIST} -Drelease=ossrh deploy + run: mvn -DskipTests --no-transfer-progress --batch-mode -Drevision=${REVISION} -Dsha1=${SHA1} -Dchangelist=${CHANGELIST} -Drelease=central deploy env: GPG_PASS: ${{ secrets.GPG_PASSPHRASE }} SONATYPE_USER: ${{ secrets.SONATYPE_USER }} diff --git a/pom.xml b/pom.xml index fe7ce0d..f0fa44e 100644 --- a/pom.xml +++ b/pom.xml @@ -339,11 +339,11 @@ - releaseOSSRH + releaseCentral release - ossrh + central @@ -370,24 +370,17 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.7.0 + org.sonatype.central + central-publishing-maven-plugin + 0.9.0 true - ossrh - https://oss.sonatype.org/ - true + central + true - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - -