summaryrefslogtreecommitdiff
path: root/packages/grails/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'packages/grails/build.gradle')
-rw-r--r--packages/grails/build.gradle22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/grails/build.gradle b/packages/grails/build.gradle
new file mode 100644
index 0000000..6a101be
--- /dev/null
+++ b/packages/grails/build.gradle
@@ -0,0 +1,22 @@
+import org.xapek.yvesf.gradle.DownloadTask
+
+subprojects {
+ task download(type: 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)
+ }
+}