From 07803d7003608aad8f577a5eed01f1b6c6bed850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Eikanger=20Kval=C3=B8?= Date: Fri, 10 Oct 2025 09:29:01 +0200 Subject: [PATCH 1/2] Switch to central publishing --- .github/workflows/maven.yml | 2 +- pom.xml | 38 +++++++++++++++++++++++++++++++------ 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 37eed43..9b34d68 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -48,7 +48,7 @@ jobs: with: java-version: 17 distribution: 'temurin' - server-id: sonatype-nexus-snapshots + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD - name: Run maven deploy diff --git a/pom.xml b/pom.xml index 7b133b1..63ce11b 100644 --- a/pom.xml +++ b/pom.xml @@ -42,6 +42,7 @@ 1.9.1 3.0 2.9.1 + 0.9.0 ${project.artifactId} Library that provides a JUnit rule for setting up unit test using an embedded in-memory database (H2) @@ -76,13 +77,13 @@ - sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots + central + https://central.sonatype.com - sonatype-nexus-staging - Nexus Release Repository - https://oss.sonatype.org/service/local/staging/deploy/maven2/ + central + Maven Central + https://central.sonatype.com @@ -111,6 +112,16 @@ + org.sonatype.central + central-publishing-maven-plugin + true + + central + true + published + + + @@ -390,6 +401,11 @@ coveralls-maven-plugin ${coveralls-maven-plugin.version} + + org.sonatype.central + central-publishing-maven-plugin + ${central-publishing-maven-plugin.version} + @@ -441,6 +457,16 @@ + + org.sonatype.central + central-publishing-maven-plugin + true + + central + true + validated + + From 26e5a594df42505a29dccfb004707b48dc3c095f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Eikanger=20Kval=C3=B8?= Date: Fri, 10 Oct 2025 09:29:53 +0200 Subject: [PATCH 2/2] Use central also for releases --- .github/workflows/deploy-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-release.yml b/.github/workflows/deploy-release.yml index ad4682b..f6500b8 100644 --- a/.github/workflows/deploy-release.yml +++ b/.github/workflows/deploy-release.yml @@ -13,7 +13,7 @@ jobs: with: java-version: 17 distribution: 'temurin' - server-id: sonatype-nexus-staging + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.GPG_KEY }}