0

添加到 Grails 2.0.4 项目的 BuildConfig 后:

test ":spock:0.7" 

在插件文档的 plugins { } 部分中,我想更新我的 eclipse 项目以包含 spock 库以创建测试,所以我运行

grails integrate-with --eclipse

但是受到了这个欢迎

| Error Error executing script IntegrateWith: The Spock compiler plugin could not run because Spock 0.5.0-groovy-1.7 is not compatible with Groovy 1.8.6. For more information, see http://versioninfo.spockframework.org
Spock location: file:/C:/Users/fgg/.grails/ivy-cache/org.spockframework/spock-core/jars/spock-core-0.5-groovy-1.7.jar
Groovy location: file:/C:/tools/grails-2.0.4/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-1.8.6.jar (Use --stacktrace to see the full trace)
4

1 回答 1

1

我最终运行它来修复它:

grails clean

然后运行这个:

grails --refresh-dependencies integrate-with --eclipse

得到这个结果:

| Loading Grails 2.0.4
| Created Eclipse project files..
于 2013-03-01T20:08:13.903 回答