Adopt commons-jcs way of generating SHA-512 checksums

Project: http://git-wip-us.apache.org/repos/asf/commons-csv/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-csv/commit/79adf78d
Tree: http://git-wip-us.apache.org/repos/asf/commons-csv/tree/79adf78d
Diff: http://git-wip-us.apache.org/repos/asf/commons-csv/diff/79adf78d

Branch: refs/heads/master
Commit: 79adf78d231388350b8c8fb2fd16b7810e332620
Parents: af261c8
Author: Benedikt Ritter <brit...@apache.org>
Authored: Wed Sep 19 10:51:35 2018 +0200
Committer: Benedikt Ritter <brit...@apache.org>
Committed: Wed Sep 19 10:51:35 2018 +0200

----------------------------------------------------------------------
 pom.xml | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/79adf78d/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 3fa6dd4..d694794 100644
--- a/pom.xml
+++ b/pom.xml
@@ -242,6 +242,45 @@ CSV files of various types.
           </excludes>
         </configuration>
       </plugin>
+
+      <!--
+        calculate checksums of release artifacts for Apache dist area
+      -->
+      <plugin>
+        <groupId>net.nicoulaj.maven.plugins</groupId>
+        <artifactId>checksum-maven-plugin</artifactId>
+        <version>1.7</version>
+        <executions>
+          <execution>
+            <id>generate.checksums</id>
+            <phase>verify</phase>
+            <goals>
+              <goal>files</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <algorithms>
+            <algorithm>SHA-512</algorithm>
+          </algorithms>
+          <csvSummary>false</csvSummary>
+          <fileSets>
+            <fileSet>
+              <directory>${project.build.directory}</directory>
+              <includes>
+                
<include>${project.artifactId}-${project.version}-src.zip</include>
+                <include>
+                  ${project.artifactId}-${project.version}-src.tar.gz
+                </include>
+                
<include>${project.artifactId}-${project.version}-bin.zip</include>
+                <include>
+                  ${project.artifactId}-${project.version}-bin.tar.gz
+                </include>
+              </includes>
+            </fileSet>
+          </fileSets>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 

Reply via email to