# Task.leftShift(Closure) deprecation clarification

**URL:** <https://discuss.gradle.org/t/task-leftshift-closure-deprecation-clarification/20599>\
**Category:** Help/Discuss\
**Created:** [November 24, 2016, 1:48pm UTC](https://discuss.gradle.org/t/task-leftshift-closure-deprecation-clarification/20599 "2016-11-24T13:48:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichardWarburton](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/richardwarburton/32/2578_2.png) [@RichardWarburton](https://discuss.gradle.org/u/RichardWarburton)\
**Post date:** [November 24, 2016, 1:48pm UTC](https://discuss.gradle.org/t/task-leftshift-closure-deprecation-clarification/20599/1 "2016-11-24T13:48:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bmuschko](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/bmuschko/32/5458_2.png) [@bmuschko](https://discuss.gradle.org/u/bmuschko)\
**Post date:** [November 25, 2016, 3:53pm UTC](https://discuss.gradle.org/t/task-leftshift-closure-deprecation-clarification/20599/2 "2016-11-25T15:53:20Z")

</div>

Please see [issue #899](https://github.com/gradle/gradle/issues/899) for more information.
