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-qi4j/repo Commit: http://git-wip-us.apache.org/repos/asf/zest-qi4j/commit/df2bf67b Tree: http://git-wip-us.apache.org/repos/asf/zest-qi4j/tree/df2bf67b Diff: http://git-wip-us.apache.org/repos/asf/zest-qi4j/diff/df2bf67b Branch: refs/heads/develop Commit: df2bf67b11b47ff30026e2f5fc00c3e53b0b9f13 Parents: 8098667 Author: Paul Merlin <[email protected]> Authored: Tue Jul 21 17:47:37 2015 +0200 Committer: Paul Merlin <[email protected]> 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-qi4j/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 }
