blob: 6c1e3d65da3a9928e8b5e90b07fc5779788ebab6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import org.xapek.yvesf.gradle.DownloadTask
subprojects {
task download(type: DownloadTask) {}
task untar(type: Copy) {
into file("${buildDir}/unpacked/dist")
eachFile { FileCopyDetails fcd ->
fcd.path = fcd.path.substring(path.indexOf('/') + 1)
}
}
untar.dependsOn(download)
ospackage {
from untar.outputs.files
}
project.afterEvaluate {
untar.from tarTree(download.destFile)
}
}
|