Gradle problem during running task

Hi folks,

I have a build file that works fine with gradle 1.11. But when I try use gradle 2.4/2.3 the task return an ConcurrentModificationException.

The sample of the is:

Any idea?

Ah, I forgot the apply plugin: ‘java’.
Imagine that this script has this plugin in root project.