summaryrefslogtreecommitdiff
path: root/packages/idea-iu
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-05-21 22:40:24 +0200
committerYves Fischer <yvesf-git@xapek.org>2016-05-21 22:40:47 +0200
commit7451517d63ceb174268367fe4a5e0782591da1f2 (patch)
tree9a3916ef2a43ab31d4f523c8e53bfaa62b01cac2 /packages/idea-iu
parente3120e43082e79fa832ba4d3a4523dfaebf1afc2 (diff)
downloaddebian-packages-7451517d63ceb174268367fe4a5e0782591da1f2.tar.gz
debian-packages-7451517d63ceb174268367fe4a5e0782591da1f2.zip
stop using intermediate projects for config inheritance
Diffstat (limited to 'packages/idea-iu')
-rw-r--r--packages/idea-iu/build.gradle25
-rw-r--r--packages/idea-iu/idea-iu.gradle31
-rw-r--r--packages/idea-iu/idea-iu15/build.gradle2
-rw-r--r--packages/idea-iu/idea-iu2016/build.gradle2
4 files changed, 35 insertions, 25 deletions
diff --git a/packages/idea-iu/build.gradle b/packages/idea-iu/build.gradle
deleted file mode 100644
index 54126f7..0000000
--- a/packages/idea-iu/build.gradle
+++ /dev/null
@@ -1,25 +0,0 @@
-import org.xapek.yvesf.gradle.DownloadTask
-
-subprojects {
- task download(type: 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)
- }
-}
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)
+}
diff --git a/packages/idea-iu/idea-iu15/build.gradle b/packages/idea-iu/idea-iu15/build.gradle
index 850edb2..9ad3d72 100644
--- a/packages/idea-iu/idea-iu15/build.gradle
+++ b/packages/idea-iu/idea-iu15/build.gradle
@@ -1,3 +1,5 @@
version '15.0.2'
+apply from: '../idea-iu.gradle'
+
download.sha256sum 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
diff --git a/packages/idea-iu/idea-iu2016/build.gradle b/packages/idea-iu/idea-iu2016/build.gradle
index 0dcee59..64479a1 100644
--- a/packages/idea-iu/idea-iu2016/build.gradle
+++ b/packages/idea-iu/idea-iu2016/build.gradle
@@ -1,3 +1,5 @@
version '2016.1.2'
+apply from: '../idea-iu.gradle'
+
download.sha256sum 'fe51f5e0cd9dde166ff5ff7194221c760e3e5a12e0e3423b7ebb10d42de9b737'