diff options
author | Yves Fischer <yvesf@cern.ch> | 2016-01-30 20:34:45 +0100 |
---|---|---|
committer | Yves Fischer <yvesf@cern.ch> | 2016-01-30 20:34:45 +0100 |
commit | 72178d14be8e2b5064cbb29f6efeb50bf10ab71c (patch) | |
tree | 2cc6e0c15959296a90dc145d1901c368e16bdb1f /packages/grails/build.gradle | |
parent | a0bdba7f0c0d67a30c70ce4c88313d03142be05f (diff) | |
download | debian-packages-72178d14be8e2b5064cbb29f6efeb50bf10ab71c.tar.gz debian-packages-72178d14be8e2b5064cbb29f6efeb50bf10ab71c.zip |
reorganize grails packages, add grails 3.1
Diffstat (limited to 'packages/grails/build.gradle')
-rw-r--r-- | packages/grails/build.gradle | 22 |
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) + } +} |