課題
sbtがコンパイルの度
[warn] there was one deprecation warning; re-run with -deprecation for details
[warn] there was one feature warning; re-run with -feature for detail
というようにwarningがあるということを教えてくれるが、そのままだと読むことが出来ない。
解決策
sbtコンソールからコンパイルしたいproject(下例ではhoge-project)に移動し、scalacOptionsを設定した上でコンパイルしてやれば大丈夫です。
$ sbt
> project hoge-project
> set scalacOptions in ThisBuild ++= Seq("-deprecation", "-feature")
> compile
ワンライナーでも書けて、上と同じものは
$ sbt 'project hoge-project' 'set scalacOptions in ThisBuild ++= Seq("-deprecation", "-feature")' compile
となります。
scalacOptionsの中身は re-run with ...
で要求されているものを適宜与えてやればよいかと思います。
参考: https://stackoverflow.com/questions/9578521/scala-sbt-how-to-re-run-with-deprecation