From a2dd47721f0d6e8b235d72af88cbd38b0cca93ca Mon Sep 17 00:00:00 2001 From: Grzegorz Piwowarek Date: Sat, 27 Jan 2024 09:31:05 +0100 Subject: [PATCH] Fix release configuration (#825) --- .github/workflows/release.yml | 2 +- pom.xml | 81 ++++++++++++++++++++++++++--------- 2 files changed, 61 insertions(+), 22 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cba8c56a..c576c834 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,4 +37,4 @@ jobs: MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - name: Release with Maven - run: mvn -DskipTests deploy + run: mvn --batch-mode --no-transfer-progress -DskipTests deploy diff --git a/pom.xml b/pom.xml index 82e4a3ac..23c33aed 100644 --- a/pom.xml +++ b/pom.xml @@ -81,27 +81,6 @@ - - org.apache.maven.plugins - maven-gpg-plugin - 3.1.0 - - - sign-artifacts - verify - - sign - - - - --pinentry-mode - loopback - - - - - - maven-surefire-plugin 3.2.5 @@ -131,6 +110,59 @@ + + central-deploy + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.1.0 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + org.sonatype.plugins + nexus-staging-maven-plugin + + + deploy-to-sonatype + deploy + + deploy + release + + + + + oss.sonatype.org + https://oss.sonatype.org + + + + + pitest @@ -250,4 +282,11 @@ test + + + sonatype-nexus-staging + Nexus Release Repository + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + +