diff --git a/.github/workflows/publish-maven-central.yml b/.github/workflows/publish-maven-central.yml index 32835ac..acfef8f 100644 --- a/.github/workflows/publish-maven-central.yml +++ b/.github/workflows/publish-maven-central.yml @@ -7,8 +7,8 @@ jobs: publish: runs-on: ubuntu-latest env: - MAVEN_OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN }} + MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} + MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_TOKEN }} MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} MAVEN_GPG_PRIVATE_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} steps: @@ -17,11 +17,11 @@ jobs: - name: Set up Java environment for building and publishing to Maven Central uses: actions/setup-java@v4 with: - java-version: 17 + java-version: 21 distribution: 'adopt' - server-id: ossrh - server-username: MAVEN_OSSRH_USERNAME - server-password: MAVEN_OSSRH_PASSWORD + server-id: central + server-username: MAVEN_CENTRAL_USERNAME + server-password: MAVEN_CENTRAL_PASSWORD gpg-private-key: ${{ env.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Clean and build project diff --git a/pom.xml b/pom.xml index 00e19d1..f152da7 100644 --- a/pom.xml +++ b/pom.xml @@ -150,32 +150,9 @@ ${java.home}/bin/javadoc - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.7.0 - true - - ossrh - https://s01.oss.sonatype.org/ - true - - - - - - ossrh - https://s01.oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - - - release