From d19ab76146daaa68ea7f992b01bb494737c1aa30 Mon Sep 17 00:00:00 2001 From: Patrick Date: Tue, 16 Sep 2025 10:36:30 +0200 Subject: [PATCH] #132 Add snapshot profile to publish snapshots without gpg signing Signed-off-by: Patrick --- .github/workflows/snapshot.yml | 2 +- pom.xml | 95 +++++++++++++++++++++------------- 2 files changed, 60 insertions(+), 37 deletions(-) diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 32c5f4c0..749de647 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -30,7 +30,7 @@ jobs: server-password: MAVEN_PASSWORD - name: Build & Publish to Maven Central - run: mvn -U -B clean deploy # -U: force updates for dependencies, -B: no user input + run: mvn -U -B clean deploy -P snapshot # -U: force updates for dependencies, -B: no user input env: MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} diff --git a/pom.xml b/pom.xml index e9bfcb00..758a1895 100644 --- a/pom.xml +++ b/pom.xml @@ -193,36 +193,24 @@ org.sonatype.central central-publishing-maven-plugin - 0.8.0 - true - - central - true - true - published - org.apache.maven.plugins maven-gpg-plugin - 3.1.0 - - - sign-artifacts - verify - - sign - - - - - - --pinentry-mode - loopback - - - - + + + maven-release-plugin + + + + + + snapshot + + + + org.sonatype.central + central-publishing-maven-plugin @@ -232,6 +220,51 @@ + + org.sonatype.central + central-publishing-maven-plugin + 0.8.0 + true + + central + true + published + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.1.0 + + + sign-artifacts + verify + + sign + + + + + + --pinentry-mode + loopback + + + + + + + + maven-release-plugin + 3.0.1 + + + mvnw + + + + maven-compiler-plugin 3.12.1 @@ -286,16 +319,6 @@ - - maven-release-plugin - 3.0.1 - - - mvnw - - - - org.jacoco jacoco-maven-plugin