From c4cf396bac7afc7b887456bb372f30a8b9eb5d69 Mon Sep 17 00:00:00 2001 From: Dennis Hendriks Date: Sat, 9 Aug 2025 18:35:54 +0200 Subject: [PATCH 1/5] #78 Migrate to central-publishing-maven-plugin. --- pom.xml | 23 ++++++----------------- release-perform | 1 + 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/pom.xml b/pom.xml index 47a203f..9836f9e 100644 --- a/pom.xml +++ b/pom.xml @@ -140,14 +140,14 @@ SPDX-License-Identifier: LGPL-2.0-or-later - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 + org.sonatype.central + central-publishing-maven-plugin + 0.8.0 true - ossrh - https://oss.sonatype.org/ - true + central + true + published @@ -208,17 +208,6 @@ SPDX-License-Identifier: LGPL-2.0-or-later - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - scm:git:git://github.com/dexecutor/dependent-tasks-executor.git scm:git:git@github.com:dexecutor/dexecutor.git diff --git a/release-perform b/release-perform index e3bc6a3..c4039c7 100644 --- a/release-perform +++ b/release-perform @@ -18,6 +18,7 @@ if [[ ! -f release.properties ]]; then exit 1 fi mvn release:perform +mvn deploy echo echo "Don't forgot push the changes and tags for this release." echo "After a successful release, execute e.g. 'git push' and 'git push --tags'." From 8c5ce795af29581b10eadc612c33d495cc43d313 Mon Sep 17 00:00:00 2001 From: Dennis Hendriks Date: Sat, 9 Aug 2025 18:46:22 +0200 Subject: [PATCH 2/5] [maven-release-plugin] prepare release 10.0.0 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 9836f9e..cdb4331 100644 --- a/pom.xml +++ b/pom.xml @@ -17,7 +17,7 @@ SPDX-License-Identifier: LGPL-2.0-or-later com.github.com-github-javabdd com.github.javabdd - 9.0.1-SNAPSHOT + 10.0.0 jar JavaBDD @@ -212,7 +212,7 @@ SPDX-License-Identifier: LGPL-2.0-or-later scm:git:git://github.com/dexecutor/dependent-tasks-executor.git scm:git:git@github.com:dexecutor/dexecutor.git https://github.com/com-github-javabdd/com.github.javabdd - HEAD + 10.0.0 From 9f173144e8fe377361bdd472222d4adad04b91d1 Mon Sep 17 00:00:00 2001 From: Dennis Hendriks Date: Sat, 9 Aug 2025 18:46:23 +0200 Subject: [PATCH 3/5] [maven-release-plugin] prepare for next development iteration --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index cdb4331..77d0b7f 100644 --- a/pom.xml +++ b/pom.xml @@ -17,7 +17,7 @@ SPDX-License-Identifier: LGPL-2.0-or-later com.github.com-github-javabdd com.github.javabdd - 10.0.0 + 10.0.1-SNAPSHOT jar JavaBDD @@ -212,7 +212,7 @@ SPDX-License-Identifier: LGPL-2.0-or-later scm:git:git://github.com/dexecutor/dependent-tasks-executor.git scm:git:git@github.com:dexecutor/dexecutor.git https://github.com/com-github-javabdd/com.github.javabdd - 10.0.0 + HEAD From 2aad9ab8a9f4660d689f6a89bf6c7ee37fe5d0f0 Mon Sep 17 00:00:00 2001 From: Dennis Hendriks Date: Sat, 9 Aug 2025 18:55:59 +0200 Subject: [PATCH 4/5] #78 Update release scripts. --- release-perform | 1 - 1 file changed, 1 deletion(-) diff --git a/release-perform b/release-perform index c4039c7..e3bc6a3 100644 --- a/release-perform +++ b/release-perform @@ -18,7 +18,6 @@ if [[ ! -f release.properties ]]; then exit 1 fi mvn release:perform -mvn deploy echo echo "Don't forgot push the changes and tags for this release." echo "After a successful release, execute e.g. 'git push' and 'git push --tags'." From 5577a8716c49e80de3c9976a260cdf9037412c44 Mon Sep 17 00:00:00 2001 From: Dennis Hendriks Date: Sat, 9 Aug 2025 18:56:28 +0200 Subject: [PATCH 5/5] #78 Update release steps documentation. --- release-steps.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/release-steps.md b/release-steps.md index b61f450..e995fcc 100644 --- a/release-steps.md +++ b/release-steps.md @@ -2,8 +2,8 @@ ## General information for publishing to Maven Central -* https://central.sonatype.org/register/central-portal/ -* https://central.sonatype.org/publish/publish-guide/ +* https://central.sonatype.org/publish/publish-portal-guide/ +* https://central.sonatype.org/publish/publish-portal-maven/ ## Steps for (mostly) one-time setup @@ -15,45 +15,45 @@ name = FirstName LastName email = EmailAddress ``` - By fulling in your `FirstName` and `LastName` and your GitHub `EmailAddress`. + By filling in your `FirstName` and `LastName` and your GitHub `EmailAddress`. * Create a GitHub personal access token, at https://github.com/settings/tokens. Use it as a password. It expires after some time, so create a new one if needed. -* Create a Sonatype personal access token, at https://oss.sonatype.org. - Log in and go to your profile. - Instead of *Summary*, select *User Token*. - Create a user token. +* Create a Sonatype publishing token, at https://central.sonatype.com/account. + Log in and go to https://central.sonatype.com/account. + Click *Generate User Token*. + Follow the steps, and note the configuration snippet that is generated, which is to be used in a later step. * Create a local GPG key. -* Configure "ossrh" server credentials in Maven settings. +* Configure GPG key and "central" server credentials in Maven settings. Create/edit `$HOME/.m2/settings.xml`, to have the following settings: ```xml - + - ossrh + central true - GPG_KEY + GPG_KEY_PASSPHRASE - + - ossrh - SONATYPE_USERNAME - SONATYPE_TOKEN + central + SONATYPE_PUBLISHING_USERNAME + SONATYPE_PUBLISHING_TOKEN ``` - Fill in your `GPG_KEY`, `SONATYPE_USERNAME` and `SONATYPE_TOKEN`. + Fill in your `GPG_KEY_PASSPHRASE`, `SONATYPE_PUBLISHING_USERNAME` and `SONATYPE_PUBLISHING_TOKEN`. ## Steps for each release