The Task.leftShift(Closure) method has been deprecated

This the `<<` closure is now deprecated, this commit change it to the
`doLast(action)`, this will remove the warning in our build

Fixes #7424
This commit is contained in:
Pier-Hugues Pellerin 2017-06-12 15:42:23 -04:00
parent a01842cd33
commit eaf52ff7c9

View file

@ -53,8 +53,8 @@ task cleanGemjar {
clean.dependsOn(cleanGemjar)
jar.finalizedBy(copyGemjar)
task gemspec_jars << {
task gemspec_jars {
doLast {
File gemspec_jars = file("./gemspec_jars.rb")
gemspec_jars.newWriter().withWriter { w ->
w << "# This file is generated by Gradle as part of the build process. It extracts the build.gradle\n"
@ -64,6 +64,7 @@ task gemspec_jars << {
w << "gem.requirements << \"jar ${dependency.group}:${dependency.name}, ${dependency.version}\"\n"
}
}
}
}
build.finalizedBy(gemspec_jars)