From 23970f52af2f73baf1386e790221858011725b13 Mon Sep 17 00:00:00 2001 From: anaiberta Date: Mon, 7 Jul 2025 15:34:14 -0300 Subject: [PATCH 1/2] Update publish process to Central * Use new `central-publishing-maven-plugin` plugin (documentation https://central.sonatype.org/publish/publish-portal-maven/) --- .github/workflows/Build.yml | 2 +- pom.xml | 26 +++++++++----------------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 04c7de72a..00f5fafc9 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -55,7 +55,7 @@ jobs: servers: '[ { "id": "github-genexuslabs", "username": "genexusbot", "password": "${{ secrets.SECURE_TOKEN }}" }, { "id": "azure-devops", "username": "genexuslabs", "password": "${env.AZURE_ARTIFACTS_TOKEN}" }, - { "id": "ossrh", "username": "${env.MAVEN_USERNAME}", "password": "${env.MAVEN_PASSWORD}" }, + { "id": "central", "username": "${env.MAVEN_USERNAME}", "password": "${env.MAVEN_PASSWORD}" }, { "id": "gpg.passphrase", "passphrase": "${env.MAVEN_GPG_PASSPHRASE}" } ]' diff --git a/pom.xml b/pom.xml index ddeee2670..8a7de1053 100644 --- a/pom.xml +++ b/pom.xml @@ -349,31 +349,23 @@ - - ossrh - Maven Central - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - - - ossrh - Maven Central - Snapshots Repository - https://s01.oss.sonatype.org/content/repositories/snapshots - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 + org.sonatype.central + central-publishing-maven-plugin + 0.8.0 true - ossrh - https://s01.oss.sonatype.org - true + central + - + From bc6d99f4d797169403f835de8f86eb091512b7d7 Mon Sep 17 00:00:00 2001 From: anaiberta Date: Mon, 7 Jul 2025 16:58:38 -0300 Subject: [PATCH 2/2] Enable automatic publication of packages to Maven Central --- pom.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/pom.xml b/pom.xml index 8a7de1053..cbc8969df 100644 --- a/pom.xml +++ b/pom.xml @@ -359,10 +359,8 @@ true central -