blob: aca89dbe8330396739fb4437d6656972241c43a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 '496d60c331f8666f99b66d08ff67a880697a7e85a9d9b76ff08814cf97f61a4c'
}
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
}
|