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 | |
parent | a0bdba7f0c0d67a30c70ce4c88313d03142be05f (diff) | |
download | debian-packages-72178d14be8e2b5064cbb29f6efeb50bf10ab71c.tar.gz debian-packages-72178d14be8e2b5064cbb29f6efeb50bf10ab71c.zip |
reorganize grails packages, add grails 3.1
Diffstat (limited to 'packages')
-rw-r--r-- | packages/grails/build.gradle | 22 | ||||
-rw-r--r-- | packages/grails/grails2.2.1/build.gradle | 4 | ||||
-rw-r--r-- | packages/grails/grails3.0.x/build.gradle | 4 | ||||
-rw-r--r-- | packages/grails/grails3.1.x/build.gradle | 4 | ||||
-rw-r--r-- | packages/grails2.2.1/build.gradle | 24 | ||||
-rw-r--r-- | packages/grails3/build.gradle | 22 |
6 files changed, 34 insertions, 46 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) + } +} diff --git a/packages/grails/grails2.2.1/build.gradle b/packages/grails/grails2.2.1/build.gradle new file mode 100644 index 0000000..e3cb4b7 --- /dev/null +++ b/packages/grails/grails2.2.1/build.gradle @@ -0,0 +1,4 @@ +version '2.2.1' + +download.source "http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-${project.version}.zip" +download.sha256sum 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' diff --git a/packages/grails/grails3.0.x/build.gradle b/packages/grails/grails3.0.x/build.gradle new file mode 100644 index 0000000..a700108 --- /dev/null +++ b/packages/grails/grails3.0.x/build.gradle @@ -0,0 +1,4 @@ +version '3.0.12' + +download.source "https://github.com/grails/grails-core/releases/download/v${project.version}/grails-${project.version}.zip" +download.sha256sum 'd3b0cf0966a42e3e76ecac593e81c96655b222fa2cc5b5940d1842c8a4753c11' diff --git a/packages/grails/grails3.1.x/build.gradle b/packages/grails/grails3.1.x/build.gradle new file mode 100644 index 0000000..4f59d87 --- /dev/null +++ b/packages/grails/grails3.1.x/build.gradle @@ -0,0 +1,4 @@ +version '3.1.0' + +download.source "https://github.com/grails/grails-core/releases/download/v${project.version}/grails-${project.version}.zip" +download.sha256sum '35bd209d5f85ec6d4c5b152eb9a33142e2ac6cb67496b0853b472214140a9c53' diff --git a/packages/grails2.2.1/build.gradle b/packages/grails2.2.1/build.gradle deleted file mode 100644 index 3e30223..0000000 --- a/packages/grails2.2.1/build.gradle +++ /dev/null @@ -1,24 +0,0 @@ -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 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' -} - -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' - } -} diff --git a/packages/grails3/build.gradle b/packages/grails3/build.gradle deleted file mode 100644 index 9616fdb..0000000 --- a/packages/grails3/build.gradle +++ /dev/null @@ -1,22 +0,0 @@ -import org.xapek.yvesf.gradle.DownloadTask - -version '3.0.10' - -task download(type: DownloadTask) { - source "https://github.com/grails/grails-core/releases/download/v${project.version}/grails-${project.version}.zip" - sha256sum '5ee27a571bee73072505f2c3af52a8c12f2749113e9791cbc1c695ecb7a8ec2d' -} - -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 -} |