From 7a0dc250a73b8b289ab416bd492582fcbbeb6015 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Mon, 15 Feb 2016 17:45:07 +0100 Subject: oraclejdk java7 --- packages/oraclejdk/build.gradle | 21 +++++++++++++++++++++ packages/oraclejdk/oraclejdk7/build.gradle | 8 ++++++++ packages/oraclejdk/oraclejdk8/build.gradle | 8 ++++++++ 3 files changed, 37 insertions(+) create mode 100644 packages/oraclejdk/build.gradle create mode 100644 packages/oraclejdk/oraclejdk7/build.gradle create mode 100644 packages/oraclejdk/oraclejdk8/build.gradle (limited to 'packages/oraclejdk') diff --git a/packages/oraclejdk/build.gradle b/packages/oraclejdk/build.gradle new file mode 100644 index 0000000..6c1e3d6 --- /dev/null +++ b/packages/oraclejdk/build.gradle @@ -0,0 +1,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) + } +} \ No newline at end of file diff --git a/packages/oraclejdk/oraclejdk7/build.gradle b/packages/oraclejdk/oraclejdk7/build.gradle new file mode 100644 index 0000000..901f586 --- /dev/null +++ b/packages/oraclejdk/oraclejdk7/build.gradle @@ -0,0 +1,8 @@ +version '7.80' + +download.source 'http://ftp.heanet.ie/mirrors/funtoo/distfiles/oracle-java/jdk-7u80-linux-x64.tar.gz' +download.sha256sum 'bad9a731639655118740bee119139c1ed019737ec802a630dd7ad7aab4309623' + +ospackage { + into '/usr/lib/jvm/java-7-oraclejdk' +} \ No newline at end of file diff --git a/packages/oraclejdk/oraclejdk8/build.gradle b/packages/oraclejdk/oraclejdk8/build.gradle new file mode 100644 index 0000000..a0d7f95 --- /dev/null +++ b/packages/oraclejdk/oraclejdk8/build.gradle @@ -0,0 +1,8 @@ +version '8.66' + +download.source 'http://ftp.heanet.ie/mirrors/funtoo/distfiles/oracle-java/jdk-8u66-linux-x64.tar.gz' +download.sha256sum 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' + +ospackage { + into '/usr/lib/jvm/java-8-oraclejdk' +} \ No newline at end of file -- cgit v1.2.1