summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorYves Fischer <yves.fischer@cern.ch>2016-01-06 14:39:05 +0100
committerYves Fischer <yves.fischer@cern.ch>2016-01-06 14:39:05 +0100
commit477ce22aee90c3e3456bc776df5a57d73245983d (patch)
tree4e7530b5fe9a8f0ff957968639c9cfb140cdd24a /packages
parentb9a22cb95d3213172834ccf52bae098ed16537b9 (diff)
downloaddebian-packages-477ce22aee90c3e3456bc776df5a57d73245983d.tar.gz
debian-packages-477ce22aee90c3e3456bc776df5a57d73245983d.zip
add grails 2.2.1
Diffstat (limited to 'packages')
-rw-r--r--packages/grails2.2.1/build.gradle24
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/grails2.2.1/build.gradle b/packages/grails2.2.1/build.gradle
new file mode 100644
index 0000000..28cd085
--- /dev/null
+++ b/packages/grails2.2.1/build.gradle
@@ -0,0 +1,24 @@
+import org.xapek.yvesf.gradle.DownloadTask
+
+version '2.2.1'
+
+task download(type: DownloadTask) {
+ source "http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-${project.version}.zip"
+ sha256sum '4ec22ff45718a0f4948261f15f7c46e67ab0c2294d83d6c3eddb110d00f9af1d'
+}
+
+task unpack(type: Copy) {
+ from zipTree(download.destFile)
+ into file("${buildDir}/unpacked/dist")
+ eachFile { FileCopyDetails fcd ->
+ fcd.path = fcd.path.substring(path.indexOf('/')+1)
+ }
+}
+unpack.dependsOn(download)
+
+ospackage {
+ into "/opt/${project.name}"
+ from unpack.outputs.files {
+ user = 'root'
+ }
+}