mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
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:
parent
a01842cd33
commit
eaf52ff7c9
1 changed files with 10 additions and 9 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue