From f2d18715c3b1538a2bfae558325c178084e541e2 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Thu, 5 Jun 2025 14:19:12 +0200 Subject: [PATCH] Switch from OSSRH to Maven Publisher API. Closes #917 --- pom.xml | 52 ++++++++++++++++++++++++++-------------------------- settings.xml | 6 +++--- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/pom.xml b/pom.xml index 12a408b7..2f5ed875 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,7 @@ - + 4.0.0 org.springframework.vault @@ -56,7 +58,7 @@ ${project.build.directory}/doc-resources - + 2016 @@ -690,6 +692,13 @@ 1.7.0 + + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 + true + + @@ -758,13 +767,13 @@ - release + org.apache.maven.plugins maven-release-plugin @@ -816,6 +825,7 @@ + @@ -857,20 +867,9 @@ central - - - sonatype-nexus-snapshots - Sonatype Nexus Snapshots - https://s01.oss.sonatype.org/content/repositories/snapshots/ - - - - sonatype-nexus-staging - Nexus Release Repository - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - - - + + true + @@ -902,20 +901,28 @@ + + org.sonatype.central + central-publishing-maven-plugin + + Spring Vault ${project.version} + central + true + + + - - distribute @@ -925,11 +932,7 @@ - - org.apache.maven.plugins @@ -1001,14 +1004,11 @@ - org.jfrog.buildinfo artifactory-maven-plugin - - diff --git a/settings.xml b/settings.xml index 2700e663..abf0ff7e 100644 --- a/settings.xml +++ b/settings.xml @@ -25,9 +25,9 @@ ${env.ARTIFACTORY_PSW} - sonatype-nexus-staging - ${env.SONATYPE_USR} - ${env.SONATYPE_PSW} + central + ${env.CENTRAL_TOKEN_USERNAME} + ${env.CENTRAL_TOKEN_PASSWORD}