diff options
author | Yves Fischer <yves.fischer@cern.ch> | 2016-03-22 13:43:27 +0100 |
---|---|---|
committer | Yves Fischer <yves.fischer@cern.ch> | 2016-03-22 13:43:27 +0100 |
commit | 980aa3d7841e0efa6acedc6a758c5728feac23e0 (patch) | |
tree | c29c5ff917f4f8af3b8f0ab15a245182a6c58774 /packages | |
parent | f9de276a9ae9e7767a7227be8f2b21788856524c (diff) | |
download | debian-packages-980aa3d7841e0efa6acedc6a758c5728feac23e0.tar.gz debian-packages-980aa3d7841e0efa6acedc6a758c5728feac23e0.zip |
add maven-3.3.9
Diffstat (limited to 'packages')
-rw-r--r-- | packages/maven/build.gradle | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/maven/build.gradle b/packages/maven/build.gradle new file mode 100644 index 0000000..840de64 --- /dev/null +++ b/packages/maven/build.gradle @@ -0,0 +1,22 @@ +import org.xapek.yvesf.gradle.DownloadTask + +version '3.3.9' + +task download(type: DownloadTask) { + source "http://mirror.switch.ch/mirror/apache/dist/maven/maven-3/${version}/binaries/apache-maven-${version}-bin.tar.gz" + sha256sum '6e3e9c949ab4695a204f74038717aa7b2689b1be94875899ac1b3fe42800ff82' +} + +task unpack(type: Copy) { + from tarTree(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 +} |