From 3c64f2099f321fd5e07ac1d83fc9e928461671cf Mon Sep 17 00:00:00 2001 From: amithkoujalgi Date: Mon, 10 Mar 2025 23:53:02 +0530 Subject: [PATCH] Add GPG plugin with test-skipping configuration Integrated the Maven GPG plugin to sign artifacts during the "verify" phase, with the ability to skip it during tests using a new `skipGpgPluginDuringTests` property. Enhanced the build profiles to manage GPG signing selectively, ensuring smoother test and build workflows. --- pom.xml | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5226a68..6121533 100644 --- a/pom.xml +++ b/pom.xml @@ -264,6 +264,7 @@ unit false true + true false @@ -289,6 +290,23 @@ + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + ${skipGpgPluginDuringTests} + + + + @@ -298,7 +316,29 @@ integration true false + true + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + ${skipGpgPluginDuringTests} + + + + + + ci-cd @@ -342,7 +382,6 @@ true - org.jacoco jacoco-maven-plugin