Adding MongoDB to SBT in a Java only project
<p>I'm currently learning the Play! framework and the project that I'm going through uses sbt as its build tool (not Maven). I've been trying to add MongoDB as a dependency to build.sbt, but haven't been successful thus far.</p>

<p>Is there something that I've missed out? Btw, why don't I need to list JUnit as a  dependency?</p>

<p><strong>build.sbt file:</strong></p>

<pre><code>name := "warehouse"
version := "1.0-SNAPSHOT"
autoScalaLibrary := false

libraryDependencies ++= Seq(
  javaJdbc,
  javaEbean,
  cache
)

libraryDependencies += "org.mongodb" % "mongodb-java-driver" % "3.2.0"

play.Project.playJavaSettings
</code></pre>

<p>Also added this to application.conf (<a href="https://www.playframework.com/modules/mongo-1.1/home" rel="nofollow">link</a>):</p>

<pre><code># The mongo module
module.mongo=${play.path}/modules/mongo

# mongodb connection details
mongo.host=localhost
mongo.port=27017
mongo.database=play
</code></pre>

<p><strong>EDIT:</strong>
The below is the compile-time error message that I get when executing the <code>play compile</code> command in the terminal:</p>

<pre><code>[info] Resolving org.mongodb#mongodb-java-driver;3.2.0 ...
[warn]  module not found: org.mongodb#mongodb-java-driver;3.2.0
[warn] ==== local: tried
[warn]   ~/Developer/Play/play-2.2.6/repository/local/org.mongodb/mongodb-java-driver/3.2.0/ivys/ivy.xml
[warn] ==== Maven2 Local: tried
[warn]   file:~/.m2/repository/org/mongodb/mongodb-java-driver/3.2.0/mongodb-java-driver-3.2.0.pom
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/mongodb/mongodb-java-driver/3.2.0/mongodb-java-driver-3.2.0.pom
[warn] ==== Typesafe Releases Repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/org/mongodb/mongodb-java-driver/3.2.0/mongodb-java-driver-3.2.0.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.mongodb#mongodb-java-driver;3.2.0: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: unresolved dependency: org.mongodb#mongodb-java-driver;3.2.0: not found
.
.
.
[error] (*:update) sbt.ResolveException: unresolved dependency: org.mongodb#mongodb-java-driver;3.2.0: not found
</code></pre>