Suggest removing jdbc dependency
The standard Play template bundles the jdbc dependency. Users will usually need to remove this dependency when they add the play-slick dependency. Mention this in the docs.
Could also mention that the error A binding to play.api.db.DBApi was already configured happens when both jdbc and play-slick are on the classpath together.
Doc for this already exists here: https://www.playframework.com/documentation/2.4.x/PlaySlickFAQ#A-binding-to-play.api.db.DBApi-was-already-configured
I guess the issue is that it's not easy to discover. If you have something in mind please share :-)
Actually it seems to be enough to deactivate the incompatible module in "application.conf":
play.modules.disabled += "play.api.db.DBModule"
Is this bad? Should it be documented? At least it allows you to still have access for instance to the Databases object, which was very useful in my case.
Hey @jdelafon,
Yes, if you want to use Databases object, then you can keep the jdbc dependency and just disable the DBModule. Just keep in mind that by disabling DBModule you won't be able to inject instances of play.api.db.Database and play.api.db.DBApi (unless you provide your own bindings).