You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2023/01/03 12:44:31 UTC

[logging-log4j-tools] branch master updated: INFRA-23996 Try to make maven-gpg-plugin work

This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j-tools.git


The following commit(s) were added to refs/heads/master by this push:
     new 7b8b6c0  INFRA-23996 Try to make maven-gpg-plugin work
7b8b6c0 is described below

commit 7b8b6c078ea19bc191d164665e1cf3b416856590
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Tue Jan 3 13:45:25 2023 +0100

    INFRA-23996 Try to make maven-gpg-plugin work
---
 .github/workflows/build.yml |  2 +-
 pom.xml                     | 16 ++++++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index dd954c0..65d47d0 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -165,7 +165,7 @@ jobs:
       - name: Deploy
         # `package install:install deploy:deploy` goal is needed to deploy without configuring the plugin in the POM.
         # For details see: https://maven.apache.org/plugins/maven-gpg-plugin/examples/deploy-signed-artifacts.html
-        # `package` is necessary before `gpg:sign` too.
+        # `package` must precede `gpg:sign`.
         run: |
           ./mvnw \
             --show-version --batch-mode --errors --no-transfer-progress \
diff --git a/pom.xml b/pom.xml
index d9b3bb9..8f706a0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -67,6 +67,7 @@
 
     <!-- plugin versions -->
     <flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
+    <maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
 
   </properties>
 
@@ -86,6 +87,7 @@
 
     <pluginManagement>
       <plugins>
+
         <plugin>
           <groupId>org.codehaus.mojo</groupId>
           <artifactId>flatten-maven-plugin</artifactId>
@@ -96,6 +98,20 @@
             <outputDirectory>${project.build.directory}</outputDirectory>
           </configuration>
         </plugin>
+
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-gpg-plugin</artifactId>
+          <version>${maven-gpg-plugin.version}</version>
+          <configuration>
+            <!-- Prevent GPG from using `pinentry` programs -->
+            <gpgArguments>
+              <arg>--pinentry-mode</arg>
+              <arg>loopback</arg>
+            </gpgArguments>
+          </configuration>
+        </plugin>
+
       </plugins>
     </pluginManagement>