From 525480ad50d8d0c6d65b84c1ad1bc924d3284a4e Mon Sep 17 00:00:00 2001 From: V K Date: Thu, 22 May 2025 09:25:52 +0200 Subject: [PATCH 1/5] Change publishing to central repository --- pom.xml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 6d54bd1..31117fb 100644 --- a/pom.xml +++ b/pom.xml @@ -118,6 +118,15 @@ ${maven.compiler.target} + + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 + true + + central + + org.apache.maven.plugins maven-resources-plugin @@ -311,14 +320,4 @@ http://www.apache.org/licenses/LICENSE-2.0.txt - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - From e4d75571fa7755d333d1d68a2189d65513f12815 Mon Sep 17 00:00:00 2001 From: V K Date: Thu, 22 May 2025 09:27:01 +0200 Subject: [PATCH 2/5] change server id to central --- .github/settings.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/settings.xml b/.github/settings.xml index b3cb38b..8b4c4d3 100644 --- a/.github/settings.xml +++ b/.github/settings.xml @@ -1,9 +1,9 @@ - ossrh + central ${env.SONATYPE_USERNAME} ${env.SONATYPE_PASSWORD} - \ No newline at end of file + From a4224338cadc76969f49362c8a31b4b7acb079e0 Mon Sep 17 00:00:00 2001 From: V K Date: Thu, 22 May 2025 09:30:55 +0200 Subject: [PATCH 3/5] move to profile --- pom.xml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index 31117fb..8960316 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ - ossrh + central gpg ${env.SONATYPE_GPG_KEYNAME} @@ -93,14 +93,13 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.2 + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 true - ossrh - https://oss.sonatype.org/ - true + central + true @@ -118,15 +117,6 @@ ${maven.compiler.target} - - org.sonatype.central - central-publishing-maven-plugin - 0.7.0 - true - - central - - org.apache.maven.plugins maven-resources-plugin From 8d99e8f11cef14635c6689eb7f4c73d50de65549 Mon Sep 17 00:00:00 2001 From: V K Date: Thu, 22 May 2025 09:35:02 +0200 Subject: [PATCH 4/5] add waitUntil option --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 8960316..4bc0224 100644 --- a/pom.xml +++ b/pom.xml @@ -100,6 +100,7 @@ central true + published From ceef1653e0b31cd73c1480a122ed95cb95e6d7d7 Mon Sep 17 00:00:00 2001 From: V K Date: Thu, 22 May 2025 09:40:03 +0200 Subject: [PATCH 5/5] change server id --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 679ac6c..8e52943 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: java-version: '8' distribution: 'zulu' cache: 'maven' - server-id: ossrh + server-id: central server-username: SONATYPE_USERNAME server-password: SONATYPE_PASSWORD gpg-private-key: ${{ secrets.SONATYPE_GPG_PRIVATE_KEY }}