You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2019/10/20 12:13:56 UTC

[maven] 02/13: add sha512 checksum to output

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

hboutemy pushed a commit to branch reproducible
in repository https://gitbox.apache.org/repos/asf/maven.git

commit dfe0892a1113a77cf3baaf0d2838c5857ce2aad6
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sat Sep 21 20:09:02 2019 +0200

    add sha512 checksum to output
---
 apache-maven/pom.xml | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/apache-maven/pom.xml b/apache-maven/pom.xml
index edbec83..ef6ce9b 100644
--- a/apache-maven/pom.xml
+++ b/apache-maven/pom.xml
@@ -189,6 +189,33 @@ under the License.
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>net.nicoulaj.maven.plugins</groupId>
+        <artifactId>checksum-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>source-release-checksum</id>
+            <goals>
+              <goal>files</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <algorithms>
+            <algorithm>SHA-512</algorithm>
+          </algorithms>
+          <fileSets>
+            <fileSet>
+              <directory>${project.build.directory}</directory>
+              <includes>
+                <include>${project.artifactId}-${project.version}-bin.zip</include>
+                <include>${project.artifactId}-${project.version}-bin.tar.gz</include>
+              </includes>
+            </fileSet>
+          </fileSets>
+          <failIfNoFiles>true</failIfNoFiles>
+        </configuration>
+      </plugin>
     </plugins>
   </build>