From 74ad736656b986942d99667394b5462975c26304 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sun, 23 Oct 2016 19:45:34 +0200 Subject: refactor buildscripts to use de.undercouch.download for dowload and verify --- packages/idea-iu/idea-iu.gradle | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'packages/idea-iu/idea-iu.gradle') 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) -} -- cgit v1.2.1