From c51c7a91dbd150ee7d140f264099d26c8d695a92 Mon Sep 17 00:00:00 2001 From: Peter Wright Date: Mon, 7 Jul 2025 12:18:05 +0100 Subject: [PATCH] chore: update maven publish to use central portal --- .github/workflows/PublishMaven.yml | 2 +- jvm/pom.xml | 36 +++++++++--------------------- 2 files changed, 12 insertions(+), 26 deletions(-) diff --git a/.github/workflows/PublishMaven.yml b/.github/workflows/PublishMaven.yml index fa98e8d..84736ca 100644 --- a/.github/workflows/PublishMaven.yml +++ b/.github/workflows/PublishMaven.yml @@ -22,7 +22,7 @@ jobs: java-version: "8" distribution: "temurin" cache: "maven" - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_TOKEN gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} diff --git a/jvm/pom.xml b/jvm/pom.xml index 32d98ba..3f9ebcf 100644 --- a/jvm/pom.xml +++ b/jvm/pom.xml @@ -29,7 +29,7 @@ http://github.com/apex-dev-tools/apex-parser.git - + UTF-8 @@ -37,18 +37,9 @@ - oss.sonatype.org - https://s01.oss.sonatype.org/content/repositories/releases - - true - - - false - - - - snapshots-oss.sonatype.org - https://s01.oss.sonatype.org/content/repositories/snapshots + Central Portal Snapshots + central-portal-snapshots + https://central.sonatype.com/repository/maven-snapshots false @@ -76,13 +67,9 @@ - ossrh - https://s01.oss.sonatype.org/content/repositories/snapshots + central + https://central.sonatype.com/repository/maven-snapshots - - ossrh - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - @@ -170,14 +157,13 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.7 + org.sonatype.central + central-publishing-maven-plugin + 0.8.0 true - ossrh - https://s01.oss.sonatype.org/ - true + central + true