You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polygene.apache.org by pa...@apache.org on 2015/07/28 14:55:12 UTC

[15/50] zest-java git commit: ZEST-25 Checksum distributions

ZEST-25 Checksum distributions

The build actually did checksum distributions when uploading them to a
maven repository. But we also need md5 & sha-512 checksums for archival
at the ASF.


Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/df2bf67b
Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/df2bf67b
Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/df2bf67b

Branch: refs/heads/master
Commit: df2bf67b11b47ff30026e2f5fc00c3e53b0b9f13
Parents: 8098667
Author: Paul Merlin <pa...@apache.org>
Authored: Tue Jul 21 17:47:37 2015 +0200
Committer: Paul Merlin <pa...@apache.org>
Committed: Tue Jul 21 17:47:37 2015 +0200

----------------------------------------------------------------------
 build.gradle | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-java/blob/df2bf67b/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 84c43e0..6918d0a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -828,6 +828,20 @@ task tarBinaries( type: Tar, dependsOn: buildAll ) {
   with binDistImage
 }
 
+// Checksum distributions
+tasks.withType( Zip ) { task ->
+  task.doLast {
+    ant.checksum file: task.archivePath, algorithm: 'MD5'
+    ant.checksum file: task.archivePath, algorithm: 'SHA-512'
+  }
+}
+tasks.withType( Tar ) { task ->
+  task.doLast {
+    ant.checksum file: task.archivePath, algorithm: 'MD5'
+    ant.checksum file: task.archivePath, algorithm: 'SHA-512'
+  }
+}
+
 artifacts {
   archives zipSources, tarSources, zipBinaries, tarBinaries
 }