Conflicting module versions with Groovy Gradle 2.0-rc-1

Hi after I tried to build my project with 2.0-rc-1 I have this error for my tests

Caused by: groovy.lang.GroovyRuntimeException: Conflicting module versions. Module [groovy-all is loaded in version 2.3.2 and you are trying to load version 2.0.5

I have only dependencies:

dependencies {
    compile localGroovy()
    compile gradleApi()

From where comes this Groovy 2.0.5

It’s likely a transitive dependency of ‘spock-core’ (try ‘gradle dependencyInsight --dependency groovy’), and Gradle isn’t currently able to do conflict resolution for ‘localGroovy’ and ‘gradleApi()’. Hence you’ll have to explicitly exclude the Groovy dependency of ‘spock-core’.

+--- org.spockframework:spock-core:0.7-groovy-2.0
  +--- junit:junit-dep:4.10
  \--- org.hamcrest:hamcrest-core:1.1 -> 1.3
  +--- org.codehaus.groovy:groovy-all:2.0.5
  \--- org.hamcrest:hamcrest-core:1.3

Then add

testCompile( 'org.spockframework:spock-core:0.7-groovy-2.0'){
  exclude group:'org.codehaus.groovy'

that solve my problems. But this is the last spock version, there is no version compatible with Groovy 2.3.2

From what I know, 0.7-groovy-2.0 works fine with Groovy 2.3.x. If you find an issue, please report it at