のえら

技術備忘とかメモとか.間違いはつっこんでいただきたい所存.アフィリエイトはやっていません.

sbt0.13.0を使おうと思ったらエラったのでメモっておく

sbtを0.12.0から0.13.0にしようとしたら理解が足りなくて詰まったのでメモしておく

sbt-launch.jar 0.13.0 をダウンロード、binに配置
http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.0/sbt-launch.jar

とりあえずsbt起動してみるとエラー

sbt.ResolveException: unresolved dependency: com.github.siasia#xsbt-web-plugin_2.10;0.12.0-0.2.11.1: not found

sbt のプラグインに関する定義があることを知らなかった。。
で、そもそも xsbt-web-plugin が siasia/xsbt-web-plugin から JamesEarlDouglas/xsbt-web-plugin に移っていた。
https://github.com/siasia/xsbt-web-plugin
https://github.com/JamesEarlDouglas/xsbt-web-plugin

Quick Start に書いてあるままを project/plugins.sbt と build.scala に追加

Add plugin to project/plugins.sbt:
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.4.2")

For .sbt build definitions, inject the plugin settings in build.sbt:
seq(webSettings :_*)