From 3e7371f547997b404b4520df292828ee665ad31e Mon Sep 17 00:00:00 2001 From: yashmahamulkar-bs Date: Fri, 27 Mar 2026 13:11:08 +0530 Subject: [PATCH] migrate from ossrh to maven central publishing Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/release.yml | 2 +- pom.xml | 20 +++++++++----------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 26c20d1..125c438 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: with: java-version: 8 distribution: 'adopt' - 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_USERNAME # env variable for username in deploy server-password: MAVEN_PASSWORD # env variable for token in deploy gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import diff --git a/pom.xml b/pom.xml index bacd8fc..6a37984 100644 --- a/pom.xml +++ b/pom.xml @@ -92,12 +92,12 @@ - ossrh - https://oss.sonatype.org/content/repositories/snapshots + central + https://central.sonatype.com/repository/maven-snapshots - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ + central + https://central.sonatype.com/ @@ -184,15 +184,13 @@ 3.0.0 - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 + org.sonatype.central + central-publishing-maven-plugin + 0.9.0 true - ossrh - https://oss.sonatype.org/ - - true + central + true