From 4a9f995227c3fda4e115bf81785857d17350f37e Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 21 May 2016 17:25:10 +0200 Subject: rename maven to maven3 and add activator for bin/mvn --- packages/maven/build.gradle | 22 ---------------------- packages/maven3/build.gradle | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 22 deletions(-) delete mode 100644 packages/maven/build.gradle create mode 100644 packages/maven3/build.gradle diff --git a/packages/maven/build.gradle b/packages/maven/build.gradle deleted file mode 100644 index 840de64..0000000 --- a/packages/maven/build.gradle +++ /dev/null @@ -1,22 +0,0 @@ -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 -} diff --git a/packages/maven3/build.gradle b/packages/maven3/build.gradle new file mode 100644 index 0000000..7cd1db3 --- /dev/null +++ b/packages/maven3/build.gradle @@ -0,0 +1,24 @@ +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 +} + +activator.bin['mvn'] = "/opt/${project.name}/bin/mvn" \ No newline at end of file -- cgit v1.2.1