From e6b38cb54746ae4811f99e934dc4cf1023804848 Mon Sep 17 00:00:00 2001 From: Harald Kuhr Date: Mon, 22 Dec 2025 09:56:19 +0100 Subject: [PATCH] #1198: Migrate from ossrh to central --- .github/workflows/ci.yml | 6 +++--- pom.xml | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9554a63e..fdb64679 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -112,7 +112,7 @@ jobs: distribution: 'temurin' java-version: '8' java-package: jdk - server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml + server-id: central # Value of the distributionManagement/repository/id field of the pom.xml server-username: MAVEN_CENTRAL_USERNAME # env variable for username in deploy (1) server-password: MAVEN_CENTRAL_PASSWORD # env variable for token in deploy (2) - name: Get Project Version @@ -122,7 +122,7 @@ jobs: if: ${{ endsWith(env.PROJECT_VERSION, '-SNAPSHOT') }} run: mvn --batch-mode --no-transfer-progress deploy -P release -DskipTests -Dgpg.signer=bc env: - MAVEN_CENTRAL_USERNAME: ${{ secrets.SONATYPE_USERNAME }} # must be the same env variable name as (1) - MAVEN_CENTRAL_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} # must be the same env variable name as (2) + MAVEN_CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }} # must be the same env variable name as (1) + MAVEN_CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }} # must be the same env variable name as (2) MAVEN_GPG_KEY: ${{ secrets.GPG_KEY }} # Value of the GPG private key to import MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} diff --git a/pom.xml b/pom.xml index 47dfeb4b..52e50215 100644 --- a/pom.xml +++ b/pom.xml @@ -85,7 +85,7 @@ - ossrh + central https://oss.sonatype.org/content/repositories/snapshots @@ -174,14 +174,14 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.7.0 + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 true - ossrh - https://oss.sonatype.org/ - true + central + true + published