From 83d688edaf49d6014018f27de19e1d3df337a533 Mon Sep 17 00:00:00 2001 From: Aaron Coburn Date: Mon, 9 Jun 2025 14:42:12 -0500 Subject: [PATCH] JCL-471: Upgrade maven central publication mechanism --- .github/workflows/cd-config.yml | 2 +- pom.xml | 33 +++++++++++++-------------------- 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/.github/workflows/cd-config.yml b/.github/workflows/cd-config.yml index 3279662ebb..22f85ad204 100644 --- a/.github/workflows/cd-config.yml +++ b/.github/workflows/cd-config.yml @@ -33,7 +33,7 @@ jobs: distribution: 'temurin' java-version: 17 cache: 'maven' - server-id: 'ossrh' + server-id: 'central' server-username: MAVEN_REPO_USERNAME server-password: MAVEN_REPO_TOKEN gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }} diff --git a/pom.xml b/pom.xml index db933918a9..0900a815a2 100644 --- a/pom.xml +++ b/pom.xml @@ -56,7 +56,6 @@ 3.4.2 3.11.2 5.0.0 - 1.7.0 12.1.2 3.9.0 3.26.0 @@ -64,6 +63,7 @@ 3.1.1 3.3.1 5.1.0.4751 + 0.7.0 3.3.1 3.5.3 @@ -124,16 +124,6 @@ - - Snapshot Repository - ossrh - https://s01.oss.sonatype.org/content/repositories/snapshots - - - Staging Repository - ossrh - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2 - ${project.artifactId} ${project.baseUri} @@ -504,15 +494,9 @@ ${sonar.plugin.version} - org.sonatype.plugins - nexus-staging-maven-plugin - ${nexus.plugin.version} - true - - ossrh - https://s01.oss.sonatype.org/ - true - + org.sonatype.central + central-publishing-maven-plugin + ${sonatype.plugin.version} org.antlr @@ -656,6 +640,15 @@ ${nvd.api.datafeed} + + org.sonatype.central + central-publishing-maven-plugin + true + + central + true + +