I've got a Play
project with some subprojects. One of the subproject needs JDBC
, so BoneCP
(it accessed MySQL
DB).
On the other hand, the root project doesn't need JDBC
at all.
My problem is: JDBC
is declared in the build.sbt
of the subproject. When I run all the tests, and in this case the root project tests, BoneCP
is initialized, even if just needed in the subproject. It brings me some problems during testing:
Configuration error[Cannot connect to database [default]] (Configuration.scala:94)
Can I specify to Play
to only use JDBC
with the subproject ? Or can I disable JDBC
or BoneCP
in the root project ?
Thanks for your answers.
Aucun commentaire:
Enregistrer un commentaire