diff options
author | Yves Fischer <yves.fischer@cern.ch> | 2016-01-06 14:22:37 +0100 |
---|---|---|
committer | Yves Fischer <yves.fischer@cern.ch> | 2016-01-06 14:22:37 +0100 |
commit | 97a461fe1738a256c6f1c214d59502bbc3d621a5 (patch) | |
tree | 50899a94322cb29661a44a8e351ed67429a14051 /packages | |
parent | 3731d9b47ca4ee73bb4fd267c946ffdc421e5d5d (diff) | |
download | debian-packages-97a461fe1738a256c6f1c214d59502bbc3d621a5.tar.gz debian-packages-97a461fe1738a256c6f1c214d59502bbc3d621a5.zip |
oraclejdk8
Diffstat (limited to 'packages')
-rw-r--r-- | packages/oraclejdk8/build.gradle | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/oraclejdk8/build.gradle b/packages/oraclejdk8/build.gradle new file mode 100644 index 0000000..e312797 --- /dev/null +++ b/packages/oraclejdk8/build.gradle @@ -0,0 +1,22 @@ +import org.xapek.yvesf.gradle.DownloadTask + +version '8.66' + +task download(type: DownloadTask) { + source "http://ftp.heanet.ie/mirrors/funtoo/distfiles/oracle-java/jre-8u66-linux-x64.tar.gz" + sha256sum 'f2249370a6ac4ca8977b66d7665179f0fef4df732f3af80b0f34567d594588bf' +} + +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-${project.version}-oraclejdk" + from untar.outputs.files +} |