From b0931510b61f04b192e946e94c4757992df9144a Mon Sep 17 00:00:00 2001 From: Tom Wetjens Date: Thu, 11 Dec 2025 08:25:22 +0100 Subject: [PATCH 1/2] Migrate from OSSRH to Central Publisher Portal Signed-off-by: Tom Wetjens --- .github/workflows/release.yml | 10 +++++----- pom.xml | 23 +++++++---------------- 2 files changed, 12 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1649cd3..681f408 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,9 +34,9 @@ jobs: with: java-version: '17' distribution: 'temurin' - server-id: ossrh - server-username: OSSRH_TOKEN_USER - server-password: OSSRH_TOKEN_KEY + server-id: central + server-username: MAVEN_CENTRAL_TOKEN_USERNAME + server-password: MAVEN_CENTRAL_TOKEN_PASSWORD gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE @@ -47,5 +47,5 @@ jobs: mvn -B -DdryRun=${{inputs.dry_run}} -DreleaseVersion=${{inputs.release_version}} -DdevelopmentVersion=${{inputs.development_version}} release:prepare release:perform env: MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - OSSRH_TOKEN_USER: ${{ vars.OSSRH_TOKEN_USER }} - OSSRH_TOKEN_KEY: ${{ secrets.OSSRH_TOKEN_KEY }} + MAVEN_CENTRAL_TOKEN_USERNAME: ${{ vars.MAVEN_CENTRAL_TOKEN_USERNAME }} + MAVEN_CENTRAL_TOKEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_TOKEN_PASSWORD }} diff --git a/pom.xml b/pom.xml index 0c06734..c0ea479 100644 --- a/pom.xml +++ b/pom.xml @@ -52,6 +52,7 @@ 5.11.0 + 0.9.0 3.5.4 3.5.4 0.15.2 @@ -61,7 +62,6 @@ 3.2.8 3.3.0 1.7.0 - 3.1.4 3.6.2 @@ -190,15 +190,6 @@ v@{project.version} - - org.apache.maven.plugins - maven-deploy-plugin - ${maven-deploy-plugin.version} - - true - - - org.codehaus.mojo exec-maven-plugin @@ -258,14 +249,14 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - ${nexus-staging-maven-plugin.version} + org.sonatype.central + central-publishing-maven-plugin + ${central-publishing-maven-plugin.version} true - ossrh - https://s01.oss.sonatype.org/ - true + central + true + true From 1541d24707c31762385711713c5a79a30ae682a6 Mon Sep 17 00:00:00 2001 From: Tom Wetjens Date: Thu, 11 Dec 2025 08:44:00 +0100 Subject: [PATCH 2/2] Update Signed-off-by: Tom Wetjens --- pom.xml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index c0ea479..de58818 100644 --- a/pom.xml +++ b/pom.xml @@ -256,7 +256,7 @@ central true - true + published @@ -272,13 +272,9 @@ - - ossrh - https://s01.oss.sonatype.org/content/repositories/snapshots - - ossrh - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ + central + https://central.sonatype.com