evant/gradle-retrolambda — pull request #10 by Mart-Bogdan (2014-01-20 22:47:29+00:00)
Title: Fixed bug on android-gradle-plugin:0.6.+

Fixed bug causing this plugin not to work with com.android.tools.build:gradle:0.6.+

Build was failing with following message
> Failed to notify project evaluation listener.
> Task with name 'compileDebugJava' not found in project ':Quick Timer'.

The reason of error is that gradle plugin 0.6 generates tasks named compileDebug, compileRelease and compileTest, but not compileDebugJava, compileReleaseJava and compileTestJava.
My solution is generic and will work on any plugin version. I'm filtering tasks by task type -- JavaCompile and then filtering it by beginning of it's name.