Happy Trailsアプリケーションの一部として、Grails2.0.3から2.2.1にアップグレードしようとしています。
https://github.com/jamesward/happytrails/tree/grails2
私が最初に苦労したのは、Geb /SpockをGroovy2で動作させることでした。プラグインをインストールしようとしたり、何かをしようとしたりすると、次のエラーが発生しました。
| Resolving plugin JAR dependencies
| Error WARNING: Dependencies cannot be resolved for plugin [mail] due to error: startup failed:
Could not instantiate global transform class org.spockframework.compiler.SpockTransform specified at jar:file:/Users/mraible/.grails/ivy-cache/org.spockframework/spock-core/jars/spock-core-0.7-groovy-1.8.jar!/META-INF/services/org.codehaus.groovy.transform.ASTTransformation because of exception org.spockframework.util.IncompatibleGroovyVersionException: The Spock compiler plugin cannot execute because Spock 0.7.0-groovy-1.8 is not compatible with Groovy 2.0.7. For more information, see http://versioninfo.spockframework.org
Grails 2.2のスポック命令を使用して、これを回避することができました。
しかし、Grailsがローカルリポジトリから記事をダウンロードしようとしているように見えるという奇妙なエラーで立ち往生しています。
$ grails compile
| Configuring classpath
:: problems summary ::
:::: ERRORS
Server access Error: Connection refused url=http://localhost:8081/artifactory/plugins-releases-local/org/codehaus/geb/geb-spock/0.9.0-RC-1/geb-spock-0.9.0-RC-1.pom
Server access Error: Connection refused url=http://localhost:8081/artifactory/plugins-releases-local/org/codehaus/geb/geb-spock/0.9.0-RC-1/geb-spock-0.9.0-RC-1.jar
| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):
- org.codehaus.geb:geb-spock:0.9.0-RC-1
これまでの私のプロジェクトの差分は次のとおりです。