summaryrefslogtreecommitdiff
path: root/packages/idea-iu/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'packages/idea-iu/build.gradle')
-rw-r--r--packages/idea-iu/build.gradle31
1 files changed, 16 insertions, 15 deletions
diff --git a/packages/idea-iu/build.gradle b/packages/idea-iu/build.gradle
index a6933eb..0547dec 100644
--- a/packages/idea-iu/build.gradle
+++ b/packages/idea-iu/build.gradle
@@ -1,22 +1,23 @@
import org.xapek.yvesf.gradle.DownloadTask
-version '14.1.5'
+subprojects {
+ task download(type: DownloadTask) {}
-task download(type: DownloadTask) {
- source "https://download.jetbrains.com/idea/ideaIU-${project.version}.tar.gz"
- sha256sum '6912902ec97a57f5553247367d6dd5b8e3041e99faf32c48b672cd31413dab73'
-}
+ task untar(type: Copy) {
+ into file("${buildDir}/unpacked/dist")
+ eachFile { FileCopyDetails fcd ->
+ fcd.path = fcd.path.substring(path.indexOf('/')+1)
+ }
+ }
+ untar.dependsOn(download)
-task untar(type: Copy) {
- from tarTree(download.destFile)
- into file("${buildDir}/unpacked/dist")
- eachFile { FileCopyDetails fcd ->
- fcd.path = fcd.path.substring(path.indexOf('/')+1)
+ ospackage {
+ into "/opt/${project.name}"
+ from untar.outputs.files
}
-}
-untar.dependsOn(download)
-ospackage {
- into "/opt/${project.name}"
- from untar.outputs.files
+ project.afterEvaluate {
+ download.source "https://download.jetbrains.com/idea/ideaIU-${project.version}.tar.gz"
+ untar.from tarTree(download.destFile)
+ }
}