diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2016-10-23 19:45:34 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-10-23 19:45:34 +0200 |
commit | 74ad736656b986942d99667394b5462975c26304 (patch) | |
tree | 67d5c504c88948e8971f514d88d606cdf3781f3b /packages/grails/grails.gradle | |
parent | c015b891ac4cebdf7b1ce6038490df321a135738 (diff) | |
download | debian-packages-74ad736656b986942d99667394b5462975c26304.tar.gz debian-packages-74ad736656b986942d99667394b5462975c26304.zip |
refactor buildscripts to use de.undercouch.download for dowload and verify
Diffstat (limited to 'packages/grails/grails.gradle')
-rw-r--r-- | packages/grails/grails.gradle | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/packages/grails/grails.gradle b/packages/grails/grails.gradle index 1998b61..f046605 100644 --- a/packages/grails/grails.gradle +++ b/packages/grails/grails.gradle @@ -1,28 +1,13 @@ -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) { + from zipTree(downloadTask.dest) into file("${buildDir}/unpacked/dist") eachFile { FileCopyDetails fcd -> fcd.path = fcd.path.substring(path.indexOf('/')+1) } } -unzip.dependsOn(download) +unzip.dependsOn(downloadTask) ospackage { into "/opt/${project.name}" from unzip.outputs.files } - -project.afterEvaluate { - unzip.from zipTree(download.destFile) -} |