From 72178d14be8e2b5064cbb29f6efeb50bf10ab71c Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 30 Jan 2016 20:34:45 +0100 Subject: reorganize grails packages, add grails 3.1 --- packages/grails/build.gradle | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/grails/build.gradle (limited to 'packages/grails/build.gradle') 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) + } +} -- cgit v1.2.1