You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2021/12/22 18:55:10 UTC

[logging-log4j2] branch release-2.x updated: Generate SHA512 and sign during release

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

rgoers pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new 9043959  Generate SHA512 and sign during release
9043959 is described below

commit 90439593b6a9601f108a30574f1662992782ef77
Author: Ralph Goers <rg...@apache.org>
AuthorDate: Wed Dec 22 11:54:30 2021 -0700

    Generate SHA512 and sign during release
---
 log4j-distribution/pom.xml | 51 ++++++++++++++++++++++++++++++++++++++++++++++
 pom.xml                    |  1 +
 2 files changed, 52 insertions(+)

diff --git a/log4j-distribution/pom.xml b/log4j-distribution/pom.xml
index ed3123b..c14723d 100644
--- a/log4j-distribution/pom.xml
+++ b/log4j-distribution/pom.xml
@@ -493,6 +493,57 @@
           </execution> -->
         </executions>
       </plugin>
+      <!-- calculate checksums of source release for Apache dist area -->
+      <plugin>
+        <groupId>net.nicoulaj.maven.plugins</groupId>
+        <artifactId>checksum-maven-plugin</artifactId>
+        <version>1.11</version>
+        <executions>
+          <execution>
+            <id>calculate-checksums</id>
+            <goals>
+              <goal>files</goal>
+            </goals>
+            <!-- execute prior to maven-gpg-plugin:sign due to https://github.com/nicoulaj/checksum-maven-plugin/issues/112 -->
+            <phase>post-integration-test</phase>
+            <configuration>
+              <algorithms>
+                <algorithm>SHA-256</algorithm>
+                <algorithm>SHA-512</algorithm>
+              </algorithms>
+              <!-- https://maven.apache.org/apache-resource-bundles/#source-release-assembly-descriptor -->
+              <fileSets>
+                <fileSet>
+                  <directory>${project.build.directory}</directory>
+                  <includes>
+                    <include>apache-log4j-${project.version}-src.zip</include>
+                    <include>apache-log4j-${project.version}-src.tar.gz</include>
+                    <include>apache-log4j-${project.version}-bin.zip</include>
+                    <include>apache-log4j-${project.version}-bin.tar.gz</include>
+                  </includes>
+                </fileSet>
+              </fileSets>
+              <csvSummary>false</csvSummary>
+              <appendFilename>true</appendFilename>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-gpg-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>sign-release-artifacts</id>
+            <goals>
+              <goal>sign</goal>
+            </goals>
+            <configuration>
+              <keyname>${Log4jSigningUserName}</keyname>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-site-plugin</artifactId>
diff --git a/pom.xml b/pom.xml
index b44056c..3ff60af 100644
--- a/pom.xml
+++ b/pom.xml
@@ -195,6 +195,7 @@
     <!--Log4jReleaseKey>B3D8E1BA</Log4jReleaseKey-->
     <Log4jReleaseManager>Ralph Goers</Log4jReleaseManager>
     <Log4jReleaseKey>B3D8E1BA</Log4jReleaseKey>
+    <Log4jSigningUserName>rgoers@apache.org</Log4jSigningUserName>
     <!-- note that any properties you want available in velocity templates must not use periods! -->
     <slf4jVersion>1.7.25</slf4jVersion>
     <logbackVersion>1.2.3</logbackVersion>