summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-01-27 22:44:38 +0100
committerYves Fischer <yvesf-git@xapek.org>2016-01-27 22:44:55 +0100
commitc51e3b091aa93726534ee1a5ee0df8ad9277b1b9 (patch)
tree17ced3e1fac1e2a66309fbb82da1d73514533dbe /packages
parent9220a3fdc864ec09a979fa6002a689655f0d260f (diff)
downloaddebian-packages-c51e3b091aa93726534ee1a5ee0df8ad9277b1b9.tar.gz
debian-packages-c51e3b091aa93726534ee1a5ee0df8ad9277b1b9.zip
add recipe for gradle
Diffstat (limited to 'packages')
-rw-r--r--packages/gradle-bin/build.gradle22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/gradle-bin/build.gradle b/packages/gradle-bin/build.gradle
new file mode 100644
index 0000000..6e00e3d
--- /dev/null
+++ b/packages/gradle-bin/build.gradle
@@ -0,0 +1,22 @@
+import org.xapek.yvesf.gradle.DownloadTask
+
+version '2.10'
+
+task download(type: DownloadTask) {
+ source "https://services.gradle.org/distributions/gradle-${project.version}-all.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
+}