summaryrefslogtreecommitdiff
path: root/packages/gradle-bin/build.gradle
blob: 37219871a31025ab42dc31ff3f377d17374d8b6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
version '3.1'

final download = makeDownloadTask(
    url: "https://services.gradle.org/distributions/gradle-${project.version}-all.zip",
    sha256: '43be380834a13e28e9504c21f67fe1a8895ab54f314a6596601896dca7213482')

task unpack(type: Copy) {
  from zipTree(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
}