Gradle 2.14 nightly compatibility breaking changes

It seems that gradle 2.14 (REL_2.14-20160504000015+0000) introduced breaking change for jacoco plugin:

In groovy version there was just dynamic property call, so JavaForkOptions was not required to be of type Task. In java version it would be more user-friendly either to change argument type to task or retrieve name property via reflection.

Hi Timur,

Thanks for the feedback, very much appreciated!
In practice, the Groovy method expected a Task that implements JavaForkOptions.
Not only the name property but also the doFirst method of Task are involved in the method body.
This commit should fix the issue by better reflecting the reality of what the method expects:
Could you please confirm it fixes the issue for you?


Yes, now I get compile-time error and it’s much better. Thank you for fast response!

1 Like