bgarrels / spock

Automatically exported from code.google.com/p/spock
0 stars 0 forks source link

Release a groovy 2.3 version of spock-core #379

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

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