summaryrefslogtreecommitdiff
path: root/packages/oraclejdk/oracle.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'packages/oraclejdk/oracle.gradle')
-rw-r--r--packages/oraclejdk/oracle.gradle40
1 files changed, 14 insertions, 26 deletions
diff --git a/packages/oraclejdk/oracle.gradle b/packages/oraclejdk/oracle.gradle
index d31a33d..dc6020b 100644
--- a/packages/oraclejdk/oracle.gradle
+++ b/packages/oraclejdk/oracle.gradle
@@ -1,15 +1,3 @@
-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 ->
@@ -28,20 +16,20 @@ ospackage {
}
project.afterEvaluate {
- untar.from tarTree(download.destFile)
+ untar.from tarTree(download.dest)
}
tasks.activator.dependsOn('untar')
-task downloadCertGrid(type: org.xapek.yvesf.gradle.DownloadTask) {
- source 'https://cafiles.cern.ch/cafiles/certificates/CERN%20Grid%20Certification%20Authority.crt'
- sha256sum 'dce1eedad3edef466ecaeebfd711291e3b86f72ca8e6b0bba65162fd07a3e642'
-}
+final downloadCertGrid = makeDownloadTask(
+ url: 'https://cafiles.cern.ch/cafiles/certificates/CERN%20Grid%20Certification%20Authority.crt',
+ sha256: 'dce1eedad3edef466ecaeebfd711291e3b86f72ca8e6b0bba65162fd07a3e642'
+)
-task downloadCertRoot2(type: org.xapek.yvesf.gradle.DownloadTask) {
- source 'https://cafiles.cern.ch/cafiles/certificates/CERN%20Root%20Certification%20Authority%202.crt'
- sha256sum '187f4f7b1315ebd2b72547c1accf2ec4077d51c14a0ce574904a9fdaea8a320c'
-}
+final downloadCertRoot2 = makeDownloadTask(
+ url: 'https://cafiles.cern.ch/cafiles/certificates/CERN%20Root%20Certification%20Authority%202.crt',
+ sha256: '187f4f7b1315ebd2b72547c1accf2ec4077d51c14a0ce574904a9fdaea8a320c'
+)
void keytool(String alias, File cert) {
final bin = new File(project.buildDir, 'unpacked/dist/bin/keytool')
@@ -59,12 +47,12 @@ void keytool(String alias, File cert) {
}
final keytoolTask = tasks.create('keytool') {
- inputs.file tasks.downloadCertGrid.outputs
- inputs.file tasks.downloadCertRoot2.outputs
+ inputs.file downloadCertGrid.outputs
+ inputs.file downloadCertRoot2.outputs
}
-keytoolTask.dependsOn(tasks.untar, tasks.downloadCertGrid)
+keytoolTask.dependsOn(tasks.untar, downloadCertGrid)
keytoolTask << {
- keytool('cern_grid_ca', tasks.downloadCertGrid.destFile)
- keytool('cern_root2_ca', tasks.downloadCertRoot2.destFile)
+ keytool('cern_grid_ca', downloadCertGrid.dest)
+ keytool('cern_root2_ca', downloadCertRoot2.dest)
}
tasks.activator.dependsOn(keytoolTask) \ No newline at end of file