AdnanKukuljac/spock

Release a groovy 2.3 version of spock-core

Closed this issue · 3 comments

Describe the enhancement you have in mind.

Would you please release a version of spock using groovy-2.3.

Which particular problem would this enhancement solve for you?

When testing a gradle plugin for gradle 2.1 and using

testCompile 'org.spockframework:spock-core:0.7-groovy-2.0'

I get the following exception

java.lang.ExceptionInInitializerError

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

so for now I need to add a workaround

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

Please provide any additional information below. You can also assign
labels.

Original issue reported on code.google.com by rspielde...@netflix.com on 17 Oct 2014 at 5:47

Point taken, but the problem isn't related to 2.3 support. The Spock POM has a 
Groovy dependency for convenience, but if Groovy is used for things other than 
testing, then you'll have to force the desired version.

Original comment by pnied...@gmail.com on 17 Oct 2014 at 5:50

Does it mean that spock 0.7 should work out of the box on groovy 2.3.6? Why not 
create a convenience package for groovy-2.3 then?

Original comment by levon...@gmail.com on 4 Dec 2014 at 9:54

Original comment by pnied...@gmail.com on 3 Mar 2015 at 2:44

  • Changed state: Fixed
  • Added labels: Milestone-1.0