From b3b9eb6524dd369a8df53a3de53fcf0a87d1ac5b Mon Sep 17 00:00:00 2001 From: Matej Novotny Date: Thu, 15 May 2025 21:42:22 +0200 Subject: [PATCH 1/2] Update Parent, update BOM release setup --- .github/workflows/release.yml | 10 +++++----- bom/pom.xml | 34 ++++++++++++++-------------------- pom.xml | 2 +- 3 files changed, 20 insertions(+), 26 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d8b38cc..1b015721 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.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 From 4b3c88c76f5f34b0f7ebb06d5f22288ae70b1b3a Mon Sep 17 00:00:00 2001 From: Matej Novotny Date: Thu, 15 May 2025 22:21:05 +0200 Subject: [PATCH 2/2] Fix GH actions branch reference in release script --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b015721..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'