From 68dbe860f3cf1890771763d929c47d43437d4953 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 30 Jan 2016 20:14:16 +0100 Subject: unify idea packaging --- packages/idea-iu/build.gradle | 31 ++++++++++++++++--------------- packages/idea-iu/idea-iu14/build.gradle | 3 +++ packages/idea-iu/idea-iu15/build.gradle | 3 +++ packages/idea-iu15/build.gradle | 22 ---------------------- 4 files changed, 22 insertions(+), 37 deletions(-) create mode 100644 packages/idea-iu/idea-iu14/build.gradle create mode 100644 packages/idea-iu/idea-iu15/build.gradle delete mode 100644 packages/idea-iu15/build.gradle (limited to 'packages') 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) + } } diff --git a/packages/idea-iu/idea-iu14/build.gradle b/packages/idea-iu/idea-iu14/build.gradle new file mode 100644 index 0000000..2502040 --- /dev/null +++ b/packages/idea-iu/idea-iu14/build.gradle @@ -0,0 +1,3 @@ +version '14.1.5' + +download.sha256sum '6912902ec97a57f5553247367d6dd5b8e3041e99faf32c48b672cd31413dab73' \ No newline at end of file diff --git a/packages/idea-iu/idea-iu15/build.gradle b/packages/idea-iu/idea-iu15/build.gradle new file mode 100644 index 0000000..807278d --- /dev/null +++ b/packages/idea-iu/idea-iu15/build.gradle @@ -0,0 +1,3 @@ +version '15.0.2' + +download.sha256sum '5a3f6d8ba6d5ce8c505f13564c04cf2f674f1c022b9a33871013acb0ebe10fe5' \ No newline at end of file diff --git a/packages/idea-iu15/build.gradle b/packages/idea-iu15/build.gradle deleted file mode 100644 index bf9f982..0000000 --- a/packages/idea-iu15/build.gradle +++ /dev/null @@ -1,22 +0,0 @@ -import org.xapek.yvesf.gradle.DownloadTask - -version '15.0.2' - -task download(type: DownloadTask) { - source "https://download.jetbrains.com/idea/ideaIU-${project.version}.tar.gz" - sha256sum '5a3f6d8ba6d5ce8c505f13564c04cf2f674f1c022b9a33871013acb0ebe10fe5' -} - -task untar(type: Copy) { - from tarTree(download.destFile) - into file("${buildDir}/unpacked/dist") - eachFile { FileCopyDetails fcd -> - fcd.path = fcd.path.substring(path.indexOf('/')+1) - } -} -untar.dependsOn(download) - -ospackage { - into "/opt/${project.name}" - from untar.outputs.files -} -- cgit v1.2.1