瀏覽代碼

Added generation of sha1 of distro archive to build.

Luke Taylor 15 年之前
父節點
當前提交
9734e4c82f
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      build.gradle

+ 4 - 1
build.gradle

@@ -141,12 +141,15 @@ task dist (type: Zip) {
     into('docs/reference') {
         from docsDir
     }
-
     into('dist') {
         from coreModuleProjects().collect { project -> project.libsDir }
     }
 }
 
+dist.doLast {
+    ant.checksum(file: archivePath, algorithm: 'SHA1', fileext: '.sha1')
+}
+
 dist.dependsOn apidocs, ':manual:doc'
 dist.dependsOn subprojects.collect { "$it.path:assemble" }