summaryrefslogtreecommitdiff
path: root/packages/idea-iu/idea-iu.gradle
diff options
context:
space:
mode:
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)
-}