Task.leftShift(Closure) deprecation clarification

(Richard Warburton) #1

Hi gradle experts,

I’ve upgraded to gradle 3.2 recently and I noticed that I was getting the following warning message:

The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_epdnyq1eib838h9294b10or9r.run(/REDACTED/build.gradle:27)

To me this looks like I need to remove some code that looks like:

taskName << {


However when I investigate line 27 of the build, referred to in the error, I see:

apply plugin: ‘net.researchgate.release’

Does this indicate that the to be deprecated method is contained within this plugin, or am I wrong about the described naming method? If it is the plugin is there a way to suppress the warning in question - it’s not actually about my code.

Most appreciative of any help on the matter.

(Benjamin Muschko) #2

Please see issue #899 for more information.