Could not find method leftShift() for arguments [build_clbfv4fc9yak87qftjxl3ar63$_run_closure5@32ededdc] on task ':deploy' of type org.gradle.api.DefaultTask.

when I build file ‘D:\bjoern\build.gradle’,Build failed with an exception.
A problem occurred evaluating root project ‘bjoern’.

Could not find method leftShift() for arguments [build_clbfv4fc9yak87qftjxl3ar63$_run_closure5@32ededdc] on task ‘:deploy’ of type org.gradle.api.DefaultTask.

Hello,

The Task.leftShift method has been deprecated since Gradle 3.2 and was removed from Gradle 5.0 API.

You can either:

  1. update your build script to replace deploy << { ... } with deploy { doLast { ... }}
  2. downgrade your Gradle runtime to Gradle 4.10.3 which is the latest version known to have that method.
1 Like