geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aba...@apache.org
Subject [1/3] incubator-geode git commit: GEODE-775: Generate md5 / sha-256 hashes for the distributions
Date Thu, 14 Jan 2016 21:25:31 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/develop 77c409c61 -> 2d815d87f


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/c158fa55
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/c158fa55
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/c158fa55

Branch: refs/heads/develop
Commit: c158fa55045a5915ede74e717b7b5c920e3ca6eb
Parents: 77c409c
Author: Anthony Baker <abaker@apache.org>
Authored: Tue Jan 12 07:41:35 2016 -0800
Committer: Anthony Baker <abaker@apache.org>
Committed: Thu Jan 14 13:19:01 2016 -0800

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


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/c158fa55/gemfire-assembly/build.gradle
----------------------------------------------------------------------
diff --git a/gemfire-assembly/build.gradle b/gemfire-assembly/build.gradle
index 3737002..d215742 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