diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3dd1e62f..a2bc4658 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -42,7 +42,7 @@ jobs: with: distribution: 'adopt' java-version: 21 - server-id: 'central' + server-id: 'ossrh' server-username: PUBLISHER_USERNAME server-password: PUBLISHER_PASSWORD gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} diff --git a/pom.xml b/pom.xml index c576f006..4b2063e1 100644 --- a/pom.xml +++ b/pom.xml @@ -217,12 +217,14 @@ - org.sonatype.central - central-publishing-maven-plugin - 0.8.0 + org.sonatype.plugins + nexus-staging-maven-plugin + 1.7.0 true - true + ossrh + https://oss.sonatype.org/ + true