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,15 +53,16 @@ task cleanGemjar {
|
|||
|
||||
clean.dependsOn(cleanGemjar)
|
||||
jar.finalizedBy(copyGemjar)
|
||||
|
||||
task gemspec_jars << {
|
||||
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"
|
||||
w << "# runtime dependencies to generate this gemspec dependencies file to be eval'ed by the gemspec\n"
|
||||
w << "# for the jar-dependencies requirements.\n\n"
|
||||
configurations.runtime.allDependencies.each { dependency ->
|
||||
w << "gem.requirements << \"jar ${dependency.group}:${dependency.name}, ${dependency.version}\"\n"
|
||||
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"
|
||||
w << "# runtime dependencies to generate this gemspec dependencies file to be eval'ed by the gemspec\n"
|
||||
w << "# for the jar-dependencies requirements.\n\n"
|
||||
configurations.runtime.allDependencies.each { dependency ->
|
||||
w << "gem.requirements << \"jar ${dependency.group}:${dependency.name}, ${dependency.version}\"\n"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue