summaryrefslogtreecommitdiff
path: root/packages/oraclejdk/oracle.gradle
blob: 03977d7e059f9574e2f820dcd1f6ec78a9ce834a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
buildscript {
  repositories {
    mavenLocal()
    mavenCentral()
  }
  dependencies {
    classpath 'org.xapek.yvesf:gradle-download-task:0.1-SNAPSHOT'
  }
}

task download(type: org.xapek.yvesf.gradle.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)
}

tasks.getByName('activator').dependsOn('untar')