diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d8b38cc..529bbc3a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: steps: - name: Retrieve project metadata id: metadata - uses: radcortez/project-metadata-action@master + uses: radcortez/project-metadata-action@main with: github-token: ${{secrets.GITHUB_TOKEN}} metadata-file-path: '.github/project.yml' @@ -32,16 +32,16 @@ jobs: with: distribution: temurin java-version: 17 - server-id: 'sonatype-nexus-staging' - server-username: 'MAVEN_DEPLOY_USERNAME' - server-password: 'MAVEN_DEPLOY_TOKEN' + server-id: 'central' + server-username: 'CENTRAL_PORTAL_USERNAME' + server-password: 'CENTRAL_PORTAL_PWD' gpg-private-key: ${{secrets.MAVEN_GPG_PRIVATE_KEY}} gpg-passphrase: 'MAVEN_GPG_PASSPHRASE' - name: Maven release ${{steps.metadata.outputs.current-version}} env: - MAVEN_DEPLOY_USERNAME: ${{secrets.MAVEN_DEPLOY_USERNAME}} - MAVEN_DEPLOY_TOKEN: ${{secrets.MAVEN_DEPLOY_TOKEN}} + CENTRAL_PORTAL_USERNAME: ${{secrets.CENTRAL_PORTAL_USERNAME}} + CENTRAL_PORTAL_PWD: ${{secrets.CENTRAL_PORTAL_PWD}} MAVEN_GPG_PASSPHRASE: ${{secrets.MAVEN_GPG_PASSPHRASE}} run: | export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED" diff --git a/bom/pom.xml b/bom/pom.xml index bab92b97..9526cc60 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -35,8 +35,7 @@ https://repository.jboss.org/nexus/content/repositories/snapshots/ - https://oss.sonatype.org/service/local/staging/deploy/maven2 - https://oss.sonatype.org/content/repositories/snapshots + https://central.sonatype.com/api/v1/publisher @@ -96,16 +95,16 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - ${nexus.staging.plugin.version} + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 true - https://oss.sonatype.org/ - sonatype-nexus-staging - 15 - - true + central + + true + + published @@ -134,9 +133,9 @@ - + - ossrh-release-repo + central-portal-release-repo false @@ -144,15 +143,10 @@ - - sonatype-nexus-snapshots - Sonatype Nexus Snapshots - ${ossrh.snapshots.repo.url} - - sonatype-nexus-staging - Nexus Release Repository - ${ossrh.releases.repo.url} + central-portal-staging + Central Portal Repository + ${central.portal.releases.repo.url} diff --git a/pom.xml b/pom.xml index a3472cfd..8c8bbe0a 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ org.jboss.weld weld-parent - 53 + 54 Weld APIs Parent