blob: da89ff36bb0c7e930cbd07f5786b4bf1250c6f40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
version '3.3.9'
final download = makeDownloadTask(
url: "https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-${version}-bin.tar.gz",
sha256: '6e3e9c949ab4695a204f74038717aa7b2689b1be94875899ac1b3fe42800ff82')
task unpack(type: Copy) {
from tarTree(download.dest)
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"
|