diff options
author | Yves Fischer <yvesf@cern.ch> | 2016-01-30 20:14:16 +0100 |
---|---|---|
committer | Yves Fischer <yvesf@cern.ch> | 2016-01-30 20:14:31 +0100 |
commit | 68dbe860f3cf1890771763d929c47d43437d4953 (patch) | |
tree | b3f0830c13ba3ca235ea7c7121143262cf0d5ff9 /packages | |
parent | 7038eec15db5db3539d13982a9a19724d6b614b2 (diff) | |
download | debian-packages-68dbe860f3cf1890771763d929c47d43437d4953.tar.gz debian-packages-68dbe860f3cf1890771763d929c47d43437d4953.zip |
unify idea packaging
Diffstat (limited to 'packages')
-rw-r--r-- | packages/idea-iu/build.gradle | 31 | ||||
-rw-r--r-- | packages/idea-iu/idea-iu14/build.gradle | 3 | ||||
-rw-r--r-- | packages/idea-iu/idea-iu15/build.gradle | 3 | ||||
-rw-r--r-- | packages/idea-iu15/build.gradle | 22 |
4 files changed, 22 insertions, 37 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) + } } 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 -} |