From 7451517d63ceb174268367fe4a5e0782591da1f2 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 21 May 2016 22:40:24 +0200 Subject: stop using intermediate projects for config inheritance --- packages/grails/grails.gradle | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 packages/grails/grails.gradle (limited to 'packages/grails/grails.gradle') 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) +} -- cgit v1.2.1