From b13d27cbe42cdf6d6f3861bbb6914b9e41fc83fa Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Fri, 16 Dec 2016 21:14:55 +0100 Subject: update IDEA and add community edition --- packages/idea/idea.gradle | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 packages/idea/idea.gradle (limited to 'packages/idea/idea.gradle') diff --git a/packages/idea/idea.gradle b/packages/idea/idea.gradle new file mode 100644 index 0000000..645c92e --- /dev/null +++ b/packages/idea/idea.gradle @@ -0,0 +1,19 @@ +final download = makeDownloadTask( + url: "https://download.jetbrains.com/idea/$filename", + 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) + } +} +untar.dependsOn(download) + +ospackage { + into "/opt/${project.name}" + from untar.outputs.files +} + +activator.bin['idea'] = "/opt/${project.name}/bin/idea.sh" -- cgit v1.2.1