diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2016-05-21 22:40:24 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-05-21 22:40:47 +0200 |
commit | 7451517d63ceb174268367fe4a5e0782591da1f2 (patch) | |
tree | 9a3916ef2a43ab31d4f523c8e53bfaa62b01cac2 /packages/idea-iu/idea-iu.gradle | |
parent | e3120e43082e79fa832ba4d3a4523dfaebf1afc2 (diff) | |
download | debian-packages-7451517d63ceb174268367fe4a5e0782591da1f2.tar.gz debian-packages-7451517d63ceb174268367fe4a5e0782591da1f2.zip |
stop using intermediate projects for config inheritance
Diffstat (limited to 'packages/idea-iu/idea-iu.gradle')
-rw-r--r-- | packages/idea-iu/idea-iu.gradle | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/idea-iu/idea-iu.gradle b/packages/idea-iu/idea-iu.gradle new file mode 100644 index 0000000..5afd834 --- /dev/null +++ b/packages/idea-iu/idea-iu.gradle @@ -0,0 +1,31 @@ +buildscript { + repositories { + mavenLocal() + mavenCentral() + } + dependencies { + classpath 'org.xapek.yvesf:gradle-download-task:0.1-SNAPSHOT' + } +} + +task download(type: org.xapek.yvesf.gradle.DownloadTask) {} + +task untar(type: Copy) { + 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 +} + +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) +} |