leftovers...

about grails groovy

2.1.0.RC1とtwitter-bootstrapプラグインでのあれこれ

先程の、cloudfoundryプラグインの話と同じような話で。
これも以外と初心者キラーなので書いておきます。
結論、BuildConfig.groovyに:

compile(":twitter-bootstrap:2.0.2.25"){
    exclude 'svn'
}

解説

あー。まだ、いろいろ出てきそうな。

あと、このtwitter-bootstrapプラグインだが、コマンド grails install-plugin twitter-bootstrap でインストールしても2.1.0.RC1ではエラーになるのでつ!

15:34:24 tyama: Error resolving plugin [name:twitter-bootstrap, group:org.grails.plugins, version:latest.integration]. Plugin not found.

社内のチャットになげたら、「15:36:38 kiy0taka: latest.integrationはmavenじゃ解決してくれないのかも。」
うーん。まだ、下位互換的な対応していないのかなー。
ちなみにコマンドからは grails install-plugin twitter-bootstrap 2.0.2.25 とバージョンを指定すればOKなのだが、これだと先のコンパイルエラーになるので、BuildConfig.groovyにてプラグインを指定するのが吉。



プラグイン連携は時間が有るときに深く調べておかないとなーと。

追記:2.1.0.RC1(きっとバグ)では、以下をrepositoriesブロックに追加が必要

grailsRepo "http://plugins.grails.org"