From 7200914b772490867978d4c83be8220b8f37e013 Mon Sep 17 00:00:00 2001 From: Mathieu Bastian Date: Thu, 8 May 2025 14:42:53 +0200 Subject: [PATCH] OSSRH to Maven Central publishing migration --- .github/workflows/ci.yml | 2 +- pom.xml | 38 +++++++++++++++----------------------- 2 files changed, 16 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b303a873..ba54aec9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: with: java-version: '11' distribution: 'temurin' - server-id: ossrh + server-id: central server-username: OSSRH_USER server-password: OSSRH_PASS gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} diff --git a/pom.xml b/pom.xml index c3e3be72..352c03a2 100644 --- a/pom.xml +++ b/pom.xml @@ -103,9 +103,10 @@ 3.2.7 - org.sonatype.plugins - nexus-staging-maven-plugin - 1.7.0 + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 + true org.jacoco @@ -175,18 +176,6 @@ - - - org.sonatype.plugins - nexus-staging-maven-plugin - true - - ossrh - https://oss.sonatype.org/ - true - - - org.jacoco @@ -226,6 +215,17 @@ + + + + org.sonatype.central + central-publishing-maven-plugin + true + + central + true + + @@ -300,12 +300,4 @@ - - - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - -