summaryrefslogtreecommitdiff
path: root/packages/oraclejdk8/build.gradle
blob: 670b6818e6280f0f6298948c71000703284c117e (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 '8.66'

task download(type: DownloadTask) {
    source "http://ftp.heanet.ie/mirrors/funtoo/distfiles/oracle-java/jdk-8u66-linux-x64.tar.gz"
    sha256sum 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
}

task untar(type: Copy) {
    into file("${buildDir}/unpacked/dist")
    from (tarTree(download.destFile))
    eachFile { FileCopyDetails fcd ->
        fcd.path = fcd.path.substring(path.indexOf('/')+1)
    }
}
untar.dependsOn(download)

ospackage {
    into "/usr/lib/jvm/java-8-oraclejdk"
    from untar.outputs.files
}