diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2e8bd4c2..dd4d7d07 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: java-version: '20' distribution: 'temurin' cache: 'maven' - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} # Value of the GPG private key to import @@ -68,8 +68,8 @@ jobs: - name: Publish package run: mvn -B --no-transfer-progress clean deploy -DskipTests=true env: - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} + MAVEN_USERNAME: ${{ secrets.CENTRAL_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN }} MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} - name: Generate changelog diff --git a/pom.xml b/pom.xml index 0f51c3ed..d989899a 100644 --- a/pom.xml +++ b/pom.xml @@ -40,18 +40,6 @@ UTF-8 UTF-8 - - - ossrh - Nexus Release Repository - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - Nexus Release Repository - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - @@ -166,14 +154,13 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.7.0 + org.sonatype.central + central-publishing-maven-plugin + 0.11.0 true - ossrh - https://oss.sonatype.org/ - true + central + true @@ -194,11 +181,10 @@ maven-release-plugin 3.3.1 - deploy nexus-staging:release + deploy true false release - deploy