summaryrefslogtreecommitdiff
path: root/packages/idea-iu/idea-iu.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/idea-iu/idea-iu.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/idea-iu/idea-iu.gradle')
-rw-r--r--packages/idea-iu/idea-iu.gradle20
1 files changed, 4 insertions, 16 deletions
diff --git a/packages/idea-iu/idea-iu.gradle b/packages/idea-iu/idea-iu.gradle
index 5afd834..e38fd41 100644
--- a/packages/idea-iu/idea-iu.gradle
+++ b/packages/idea-iu/idea-iu.gradle
@@ -1,16 +1,9 @@
-buildscript {
- repositories {
- mavenLocal()
- mavenCentral()
- }
- dependencies {
- classpath 'org.xapek.yvesf:gradle-download-task:0.1-SNAPSHOT'
- }
-}
-
-task download(type: org.xapek.yvesf.gradle.DownloadTask) {}
+final download = makeDownloadTask(
+ url: "https://download.jetbrains.com/idea/ideaIU-${project.version}.tar.gz",
+ sha256: sha256sum)
task untar(type: Copy) {
+ from tarTree(download.dest)
into file("${buildDir}/unpacked/dist")
eachFile { FileCopyDetails fcd ->
fcd.path = fcd.path.substring(path.indexOf('/')+1)
@@ -24,8 +17,3 @@ ospackage {
}
activator.bin['idea'] = "/opt/${project.name}/bin/idea.sh"
-
-project.afterEvaluate {
- download.source "https://download.jetbrains.com/idea/ideaIU-${project.version}.tar.gz"
- untar.from tarTree(download.destFile)
-}