geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aba...@apache.org
Subject [37/50] [abbrv] incubator-geode git commit: GEODE-775: Generate md5 / sha-256 hashes for the distributions
Date Mon, 08 Feb 2016 17:03:52 GMT
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 <abaker@apache.org>
Authored: Tue Jan 12 07:41:35 2016 -0800
Committer: Anthony Baker <abaker@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'


Mime
View raw message