The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead. Task.leftShift(Closure) は非推奨になりました。 Gradle 5.0 で削除予定です。 代わりに Task.doLast(Action) を使ってください。 Gradle 3.2 で非推奨になったらしい。 Gradle 3.2 のリリースノート から抜粋: The last change we want to bring to your attention has been a long time coming and will affect a large number of build