...
As of Gradle 1.4, Gradle's native Groovy compiler integration doesn't seem to be compatible with extension modules. A fix is available in Groovy 2.1.2. As a workaround, you can use the Ant compiler integration:
| Code Block |
|---|
compileGroovy.groovyOptions.useAnt = true compileTestGroovy.groovyOptions.useAnt = true |
See https://jira.codehaus.org/browse/GROOVY-6008