You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafu.apache.org by mh...@apache.org on 2016/07/07 21:38:23 UTC

incubator-datafu git commit: DATAFU-109: Compute SHA-512 checksum in addition to MD5 for source release

Repository: incubator-datafu
Updated Branches:
  refs/heads/master 53251bbe7 -> 6812d08ec


DATAFU-109: Compute SHA-512 checksum in addition to MD5 for source release


Project: http://git-wip-us.apache.org/repos/asf/incubator-datafu/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-datafu/commit/6812d08e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-datafu/tree/6812d08e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-datafu/diff/6812d08e

Branch: refs/heads/master
Commit: 6812d08ecf47e4776260b9dac652abdc9dc142cb
Parents: 53251bb
Author: Matthew Hayes <mh...@apache.org>
Authored: Thu Jul 7 14:38:10 2016 -0700
Committer: Matthew Hayes <mh...@apache.org>
Committed: Thu Jul 7 14:38:10 2016 -0700

----------------------------------------------------------------------
 gradle/release.gradle | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-datafu/blob/6812d08e/gradle/release.gradle
----------------------------------------------------------------------
diff --git a/gradle/release.gradle b/gradle/release.gradle
index d900994..039167b 100644
--- a/gradle/release.gradle
+++ b/gradle/release.gradle
@@ -35,7 +35,7 @@ if (!isRelease) {
 task prepare_release_config(type: Copy) {
   from "$rootDir/gradle.properties"
   into "$rootDir"
-  rename { filename -> 
+  rename { filename ->
     filename + ".release" }
   filter { line ->
     if (isRelease && line.startsWith("release=")) {
@@ -81,8 +81,9 @@ task sourceRelease(type: Tar, dependsOn: prepare_release_config) {
   destinationDir = file("${project.buildDir}/distribution/source")
 
   archiveName = "${baseName}.tgz"
-  doLast { // generate md5 checksum
-    ant.checksum file:"$destinationDir/$archiveName"
+  doLast {
+    ant.checksum file:"$destinationDir/$archiveName", algorithm: "MD5"
+    ant.checksum file:"$destinationDir/$archiveName", algorithm: "SHA-512"
   }
 }