You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ab...@apache.org on 2016/02/08 18:03:52 UTC

[37/50] [abbrv] incubator-geode git commit: GEODE-775: Generate md5 / sha-256 hashes for the distributions

GEODE-775: Generate md5 / sha-256 hashes for the distributions

The binary and source distributions created by the build need
accompanying hash files to verification.  This change uses the
doList hook to generate the hashes after the distribution is
created.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/010f5f67
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/010f5f67
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/010f5f67

Branch: refs/heads/master
Commit: 010f5f673feba28991fbb7a0367e50cdc03839e7
Parents: d6d7030
Author: Anthony Baker <ab...@apache.org>
Authored: Tue Jan 12 07:41:35 2016 -0800
Committer: Anthony Baker <ab...@apache.org>
Committed: Tue Jan 12 08:45:48 2016 -0800

----------------------------------------------------------------------
 gemfire-assembly/build.gradle | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/010f5f67/gemfire-assembly/build.gradle
----------------------------------------------------------------------
diff --git a/gemfire-assembly/build.gradle b/gemfire-assembly/build.gradle
index ad466de..4c74513 100755
--- a/gemfire-assembly/build.gradle
+++ b/gemfire-assembly/build.gradle
@@ -177,6 +177,17 @@ task gfshDepsJar (type: Jar, dependsOn: ':gemfire-core:classes') {
   }
 }
 
+gradle.taskGraph.whenReady( { graph ->
+  tasks.withType(AbstractArchiveTask).findAll {
+    it.name.toLowerCase().contains("dist")
+  }.each { archive ->
+    archive.doLast {
+      ant.checksum file:"${archive.archivePath}", algorithm:"md5"
+      ant.checksum file:"${archive.archivePath}", algorithm:"sha-256"
+    }
+  }
+})
+
 distributions {
   src {
     baseName = 'apache-geode-src'