summaryrefslogtreecommitdiff
path: root/packages/gradle-bin/build.gradle
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-10-23 19:45:34 +0200
committerYves Fischer <yvesf-git@xapek.org>2016-10-23 19:45:34 +0200
commit74ad736656b986942d99667394b5462975c26304 (patch)
tree67d5c504c88948e8971f514d88d606cdf3781f3b /packages/gradle-bin/build.gradle
parentc015b891ac4cebdf7b1ce6038490df321a135738 (diff)
downloaddebian-packages-74ad736656b986942d99667394b5462975c26304.tar.gz
debian-packages-74ad736656b986942d99667394b5462975c26304.zip
refactor buildscripts to use de.undercouch.download for dowload and verify
Diffstat (limited to 'packages/gradle-bin/build.gradle')
-rw-r--r--packages/gradle-bin/build.gradle25
1 files changed, 11 insertions, 14 deletions
diff --git a/packages/gradle-bin/build.gradle b/packages/gradle-bin/build.gradle
index aca89db..3721987 100644
--- a/packages/gradle-bin/build.gradle
+++ b/packages/gradle-bin/build.gradle
@@ -1,22 +1,19 @@
-import org.xapek.yvesf.gradle.DownloadTask
+version '3.1'
-version '2.10'
-
-task download(type: DownloadTask) {
- source "https://services.gradle.org/distributions/gradle-${project.version}-all.zip"
- sha256sum '496d60c331f8666f99b66d08ff67a880697a7e85a9d9b76ff08814cf97f61a4c'
-}
+final download = makeDownloadTask(
+ url: "https://services.gradle.org/distributions/gradle-${project.version}-all.zip",
+ sha256: '43be380834a13e28e9504c21f67fe1a8895ab54f314a6596601896dca7213482')
task unpack(type: Copy) {
- from zipTree(download.destFile)
- into file("${buildDir}/unpacked/dist")
- eachFile { FileCopyDetails fcd ->
- fcd.path = fcd.path.substring(path.indexOf('/')+1)
- }
+ from zipTree(download.dest)
+ into file("${buildDir}/unpacked/dist")
+ eachFile { FileCopyDetails fcd ->
+ fcd.path = fcd.path.substring(path.indexOf('/') + 1)
+ }
}
unpack.dependsOn(download)
ospackage {
- into "/opt/${project.name}"
- from unpack.outputs.files
+ into "/opt/${project.name}"
+ from unpack.outputs.files
}