From e4e15d2fdb19605761303c2ecd11ddcc28684ee6 Mon Sep 17 00:00:00 2001 From: Andrew Lee Rubinger Date: Thu, 14 Nov 2024 02:43:44 -0800 Subject: [PATCH] Issue #16: Attempt to publish via new Central instructions --- .github/workflows/release.yml | 2 +- .maven_settings.xml | 7 +------ pom.xml | 26 +++++++------------------- 3 files changed, 9 insertions(+), 26 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 86ee113..031acd1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -71,7 +71,7 @@ jobs: --settings .maven_settings.xml \ -DreleaseVersion=$version \ -DdevelopmentVersion=$nextVersion \ - -P ossrh,sign-artifacts + -P central,sign-artifacts env: SIGN_KEY_PASS: ${{ secrets.GPG_SECRET_PASSPHRASE }} SIGN_KEY: ${{ secrets.GPG_SECRET_KEY }} diff --git a/.maven_settings.xml b/.maven_settings.xml index 48d1e03..9bc9a54 100644 --- a/.maven_settings.xml +++ b/.maven_settings.xml @@ -16,12 +16,7 @@ ${env.ARTIFACTORY_PASSWORD} - ossrh-snapshots - ${env.SONATYPE_USERNAME} - ${env.SONATYPE_PASSWORD} - - - ossrh-releases + central ${env.SONATYPE_USERNAME} ${env.SONATYPE_PASSWORD} diff --git a/pom.xml b/pom.xml index 88130fa..e007d83 100644 --- a/pom.xml +++ b/pom.xml @@ -432,34 +432,22 @@ - - ossrh + + central - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 + org.sonatype.central + central-publishing-maven-plugin + 0.6.0 true - ossrh-releases - https://s01.oss.sonatype.org/ - true + central + true - - - ossrh-snapshots - https://s01.oss.sonatype.org/content/repositories/snapshots - - - - ossrh-releases - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - -