play-slickを依存に入れたらslickは不要か?

PlayframeworkSlickを使う時にPlayframeworkの公式ドキュメントにも記述されている、play-slickというPlayプラグインを使う。GitHubに転がってるサンプルとかをみると、依存ライブラリ(libraryDependencies)にplay-slickslickどちら書いているパターンと、書いてないパターンがあった。

で、結局必要なのか不要なのかよくわからなくなって調べて見たらPlayのドキュメント(しかも「Setup」に)にちゃんと書いてあった。

The above dependency will also bring along the Slick library as a transitive dependency. This implies you don’t need to add an explicit dependency on Slick, but you may if desired. You may explicitly define a dependency to Slick if you need to use a newer version than the one bundled with play-slick. Because Slick trailing dot releases are binary compatible, you won’t incur any risk in using a different Slick trailing point release than the one that was used to build play-slick. https://www.playframework.com/documentation/2.6.x/PlaySlick#Setup

要は、play-slick入れればslickも勝手に入るから追加する必要はないんだけど、play-slickで採用してるものより新しいslickを使いたかったら指定すればいいという感じかな。

ちなみに、play-slickが使ってるバージョンはここっぽい。

今日(2017/08/21)時点だと3.2.1

References