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

pottlinger pushed a commit to branch feature/RAT-534
in repository https://gitbox.apache.org/repos/asf/creadur-rat.git

commit 16ee29079d3aad70633bab2fa81ed5f814a47406
Author: P. Ottlinger <[email protected]>
AuthorDate: Mon Mar 16 23:27:16 2026 +0100

    RAT-534: Automatically generate SHA512 and SHA256 checksums during ASF 
release builds
---
 apache-rat-plugin/pom.xml |  4 ++--
 apache-rat-tasks/pom.xml  | 24 ++++++++++++------------
 apache-rat/pom.xml        |  2 +-
 pom.xml                   | 27 ++++++++++++++++++++++++---
 4 files changed, 39 insertions(+), 18 deletions(-)

diff --git a/apache-rat-plugin/pom.xml b/apache-rat-plugin/pom.xml
index 76d0e0d3..6c56d599 100644
--- a/apache-rat-plugin/pom.xml
+++ b/apache-rat-plugin/pom.xml
@@ -122,7 +122,7 @@
                     </goals>
                   </pluginExecutionFilter>
                   <action>
-                    <ignore />
+                    <ignore/>
                   </action>
                 </pluginExecution>
                 <pluginExecution>
@@ -135,7 +135,7 @@
                     </goals>
                   </pluginExecutionFilter>
                   <action>
-                    <ignore />
+                    <ignore/>
                   </action>
                 </pluginExecution>
               </pluginExecutions>
diff --git a/apache-rat-tasks/pom.xml b/apache-rat-tasks/pom.xml
index 8a90a0fd..35d00354 100644
--- a/apache-rat-tasks/pom.xml
+++ b/apache-rat-tasks/pom.xml
@@ -198,18 +198,18 @@
               <skip>${skipTests}</skip>
               <target>
                 <ant 
antfile="src/test/resources/antunit/report-bad-configurations.xml" 
inheritAll="false" inheritRefs="false">
-                  <property name="jar.name" 
location="${project.build.outputDirectory}" />
-                  <property name="base.dir" location="${basedir}" />
-                  <property name="antunit.jar.name" 
location="${project.build.directory}/dependencies/ant-antunit.jar" />
-                  <property name="test.skipped" value="${skipTests}" />
-                  <property name="test.classpath" refid="maven.test.classpath" 
/>
+                  <property name="jar.name" 
location="${project.build.outputDirectory}"/>
+                  <property name="base.dir" location="${basedir}"/>
+                  <property name="antunit.jar.name" 
location="${project.build.directory}/dependencies/ant-antunit.jar"/>
+                  <property name="test.skipped" value="${skipTests}"/>
+                  <property name="test.classpath" 
refid="maven.test.classpath"/>
                 </ant>
                 <ant 
antfile="src/test/resources/antunit/report-normal-operation.xml" 
inheritAll="false" inheritRefs="false">
-                  <property name="jar.name" 
location="${project.build.outputDirectory}" />
-                  <property name="base.dir" location="${basedir}" />
-                  <property name="antunit.jar.name" 
location="${project.build.directory}/dependencies/ant-antunit.jar" />
-                  <property name="test.skipped" value="${maven.test.skip}" />
-                  <property name="test.classpath" refid="maven.test.classpath" 
/>
+                  <property name="jar.name" 
location="${project.build.outputDirectory}"/>
+                  <property name="base.dir" location="${basedir}"/>
+                  <property name="antunit.jar.name" 
location="${project.build.directory}/dependencies/ant-antunit.jar"/>
+                  <property name="test.skipped" value="${maven.test.skip}"/>
+                  <property name="test.classpath" 
refid="maven.test.classpath"/>
                 </ant>
               </target>
             </configuration>
@@ -291,7 +291,7 @@
                     </goals>
                   </pluginExecutionFilter>
                   <action>
-                    <ignore />
+                    <ignore/>
                   </action>
                 </pluginExecution>
                 <pluginExecution>
@@ -304,7 +304,7 @@
                     </goals>
                   </pluginExecutionFilter>
                   <action>
-                    <ignore />
+                    <ignore/>
                   </action>
                 </pluginExecution>
               </pluginExecutions>
diff --git a/apache-rat/pom.xml b/apache-rat/pom.xml
index 36fccdc5..bcf8b1e2 100644
--- a/apache-rat/pom.xml
+++ b/apache-rat/pom.xml
@@ -369,7 +369,7 @@
                     </goals>
                   </pluginExecutionFilter>
                   <action>
-                    <ignore />
+                    <ignore/>
                   </action>
                 </pluginExecution>
               </pluginExecutions>
diff --git a/pom.xml b/pom.xml
index 253189e0..d1f28b93 100644
--- a/pom.xml
+++ b/pom.xml
@@ -699,7 +699,7 @@ agnostic home for software distribution comprehension and 
audit tools.
                     </goals>
                   </pluginExecutionFilter>
                   <action>
-                    <ignore />
+                    <ignore/>
                   </action>
                 </pluginExecution>
               </pluginExecutions>
@@ -786,7 +786,7 @@ agnostic home for software distribution comprehension and 
audit tools.
             </goals>
             <configuration>
               <target>
-                <copy file="RELEASE_NOTES.txt" 
todir="${project.build.directory}/site/" failonerror="false" />
+                <copy file="RELEASE_NOTES.txt" 
todir="${project.build.directory}/site/" failonerror="false"/>
               </target>
             </configuration>
           </execution>
@@ -805,7 +805,7 @@ agnostic home for software distribution comprehension and 
audit tools.
             <configuration>
               <skip>true</skip>
               <rules>
-                <NoPackageCyclesRule 
implementation="org.apache.axiom.buildutils.enforcer.NoPackageCyclesEnforcerRule"
 />
+                <NoPackageCyclesRule 
implementation="org.apache.axiom.buildutils.enforcer.NoPackageCyclesEnforcerRule"/>
               </rules>
             </configuration>
           </execution>
@@ -1097,6 +1097,27 @@ agnostic home for software distribution comprehension 
and audit tools.
               </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>source-release-checksum</id>
+                <goals>
+                  <goal>artifacts</goal>
+                </goals>
+                <configuration>
+                  <includeClassifiers>bin,src</includeClassifiers>
+                  <algorithms>
+                    <algorithm>SHA-256</algorithm>
+                    <algorithm>SHA-512</algorithm>
+                  </algorithms>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
         </plugins>
       </build>
     </profile>

Reply via email to