diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2016-10-23 19:45:34 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-10-23 19:45:34 +0200 |
commit | 74ad736656b986942d99667394b5462975c26304 (patch) | |
tree | 67d5c504c88948e8971f514d88d606cdf3781f3b /packages/jvmtop/build.gradle | |
parent | c015b891ac4cebdf7b1ce6038490df321a135738 (diff) | |
download | debian-packages-74ad736656b986942d99667394b5462975c26304.tar.gz debian-packages-74ad736656b986942d99667394b5462975c26304.zip |
refactor buildscripts to use de.undercouch.download for dowload and verify
Diffstat (limited to 'packages/jvmtop/build.gradle')
-rw-r--r-- | packages/jvmtop/build.gradle | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/packages/jvmtop/build.gradle b/packages/jvmtop/build.gradle index a37a66c..ad250a9 100644 --- a/packages/jvmtop/build.gradle +++ b/packages/jvmtop/build.gradle @@ -1,14 +1,13 @@ -import org.xapek.yvesf.gradle.DownloadTask - version '0.8.0' -task download(type: DownloadTask) { - source "https://github.com/patric-r/jvmtop/releases/download/0.8.0/jvmtop-${project.version}.tar.gz" - sha256sum 'f9de8159240b400a51b196520b4c4f0ddbcaa8e587fab1f0a59be8a00dc128c4' -} +final download = makeDownloadTask( + url: "https://github.com/patric-r/jvmtop/releases/download/0.8.0/jvmtop-${project.version}.tar.gz", + sha256: 'f9de8159240b400a51b196520b4c4f0ddbcaa8e587fab1f0a59be8a00dc128c4') + +download.acceptAnyCertificate true task unpack(type: Copy) { - from tarTree(download.destFile) + from tarTree(download.dest) into file("${buildDir}/unpacked/dist") eachFile { FileCopyDetails fcd -> fcd.path = fcd.path.substring(path.indexOf('/')+1) |