Spock framework has conflict with other plugins in Grails 1.3.8 -
i have installed spock on grails 1.3.8 application. fails after running test-app. seems has conflicts other plugins cannot figure out. have on 20 plugins installed.
the error :
org.codehaus.groovy.control.multiplecompilationerrorsexception: startup failed: not instantiate global transform class org.spockframework.compiler.spocktransform specified @ jar:file: /c:/documents%20and%20settings/xxxxxxx/.ivy2/cache/org.spock framework/spock-core/jars/spock-core-0.6-groovy-1.8.jar!/meta-inf/services /org.codehaus.groovy.transform.asttransformation because of exception org.spockframework.util.incompatiblegroovyversionexception: spock compiler plugin cannot execute because spock 0.6.0-groovy-1.8 not compatible groovy 1.7.8. more information,see http://versioninfo.spockframework.org spock location: file:/c:/documents%20and%20settings/xxxxxx/.ivy2/cache /org.spockframework /spock-core/jars/spock-core-0.6-groovy-1.8.jar groovy location: file:/c:/dev/grails/grails-1.3.8/lib/groovy-all-1.7.8.jar here buildconfig:
dependencies { test "org.spockframework:spock-grails-support:0.6-groovy-1.7" } plugins { compile ":joda-time:1.4" compile ":excel-import:0.9.6" compile ":export:1.3" test(":spock:0.6") { exclude "spock-grails-support" } } i able run spock test without issue if dont install plugin. not sure if there specific 1 of plugins or spock or doing wrong.
additional information: found out reason one/more of plugins prevents grails downloading
spock-grails-support:0.6-groovy-1.7
with plugins, grails download spock-grails-support:0.6-groovy-1.8 not 1.7 required 1.3.8. not sure preventing grails downloading dependency.
thanks advice
it appeared joda-time plugin has dependency on spock, although, has set export false in plugin, forcing grails download spock-grails-support:0.6-groovy-1.8 in application. had exclude spock , far seems working.
compile (":joda-time:1.4") { exclude "spock" }
Comments
Post a Comment