It seems that Gradle
javaCompile task doesn’t take compile option
-parameters into count.
Here is related post by me.
JDK8u60 fixed bug of javac option
-parameters, and JDK8u60’s javac can produce byte code which can retrieve lambda parameter’s name by reflection. But classes compiled by Gradle, cannot retrieve lambda parameter.
I think it is a bug on Gradle