From 2ad292bf503105eb6b0b293d79b0476f4314b432 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Thu, 1 Dec 2016 13:33:36 +0100 Subject: Replace << by doLast --- build.gradle | 8 ++++---- packages/gwt-chromium/build.gradle | 4 ++-- packages/oraclejdk/oracle.gradle | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index af60897..7d9594c 100644 --- a/build.gradle +++ b/build.gradle @@ -37,7 +37,7 @@ allprojects { } final reindex = tasks.create('reindex') -reindex << { +reindex.doLast { ant.taskdef( name: 'antSsh', classname: 'org.apache.tools.ant.taskdefs.optional.ssh.SSHExec', @@ -67,7 +67,7 @@ subprojects { } // meta task - task download << {} + final download = tasks.create('download') ext.makeDownloadTask = { Map params -> final url = params.url @@ -98,7 +98,7 @@ subprojects { final buildDeb = project.getTasks().getByName('buildDeb') final upload = tasks.create('upload') - upload << { + upload.doLast { ant.antScp( file: buildDeb.archivePath, todir: "${sshUser}@${sshHost}:${sshTargetDir}", @@ -122,7 +122,7 @@ subprojects { project.extensions.add('activator', activatorExtension) final activatorTask = task('activator') - activatorTask << { + activatorTask.doLast { final activatorDir = new File(project.buildDir, 'activator') activatorExtension.bin.each { entry -> diff --git a/packages/gwt-chromium/build.gradle b/packages/gwt-chromium/build.gradle index 63f16f9..3f4a46c 100644 --- a/packages/gwt-chromium/build.gradle +++ b/packages/gwt-chromium/build.gradle @@ -35,7 +35,7 @@ task unpackGwtPlugin() { } unpackGwtPlugin {}.dependsOn(downloadGwtPlugin) -unpackGwtPlugin << { +unpackGwtPlugin.doLast { def fs = new FileOutputStream(zip) final bytes = inputs.files.first().readBytes() fs.write(bytes, 306, bytes.length - 306) @@ -64,7 +64,7 @@ task unpackPdfPlugin() { } unpackPdfPlugin.dependsOn(downloadPdfPlugin) -unpackPdfPlugin << { +unpackPdfPlugin.doLast { def fs = new FileOutputStream(zip) final bytes = inputs.files.first().readBytes() fs.write(bytes, 306, bytes.length - 306) diff --git a/packages/oraclejdk/oracle.gradle b/packages/oraclejdk/oracle.gradle index dc6020b..32f7ce0 100644 --- a/packages/oraclejdk/oracle.gradle +++ b/packages/oraclejdk/oracle.gradle @@ -51,7 +51,7 @@ final keytoolTask = tasks.create('keytool') { inputs.file downloadCertRoot2.outputs } keytoolTask.dependsOn(tasks.untar, downloadCertGrid) -keytoolTask << { +keytoolTask.doLast { keytool('cern_grid_ca', downloadCertGrid.dest) keytool('cern_root2_ca', downloadCertRoot2.dest) } -- cgit v1.2.1