summaryrefslogtreecommitdiff
path: root/packages/grails/grails.gradle
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/grails/grails.gradle
parente3120e43082e79fa832ba4d3a4523dfaebf1afc2 (diff)
downloaddebian-packages-7451517d63ceb174268367fe4a5e0782591da1f2.tar.gz
debian-packages-7451517d63ceb174268367fe4a5e0782591da1f2.zip
stop using intermediate projects for config inheritance
Diffstat (limited to 'packages/grails/grails.gradle')
-rw-r--r--packages/grails/grails.gradle28
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/grails/grails.gradle b/packages/grails/grails.gradle
new file mode 100644
index 0000000..1998b61
--- /dev/null
+++ b/packages/grails/grails.gradle
@@ -0,0 +1,28 @@
+buildscript {
+ repositories {
+ mavenLocal()
+ mavenCentral()
+ }
+ dependencies {
+ classpath 'org.xapek.yvesf:gradle-download-task:0.1-SNAPSHOT'
+ }
+}
+
+task download(type: org.xapek.yvesf.gradle.DownloadTask) {}
+
+task unzip(type: Copy) {
+ into file("${buildDir}/unpacked/dist")
+ eachFile { FileCopyDetails fcd ->
+ fcd.path = fcd.path.substring(path.indexOf('/')+1)
+ }
+}
+unzip.dependsOn(download)
+
+ospackage {
+ into "/opt/${project.name}"
+ from unzip.outputs.files
+}
+
+project.afterEvaluate {
+ unzip.from zipTree(download.destFile)
+}