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 gradle.build is: https://raw.githubusercontent.com/forge/addon-gradle/master/impl/src/main/resources/forgeOutput.gradle

Any idea?

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