Installation

The recommended way to get started using the driver in your project is with a dependency management system.

MongoDB Scala Driver

The MongoDB Scala Driver

Scala 2.12


libraryDependencies += "org.mongodb.scala" %% "mongo-scala-driver" % "2.6.0"

You can also download the jars directly from sonatype.

Note: mongo-scala-driver requires the following dependencies: mongo-scala-bson, bson, mongodb-driver-core, and mongodb-driver-async.

Scala 2.11


libraryDependencies += "org.mongodb.scala" %% "mongo-scala-driver" % "2.6.0"

You can also download the jars directly from sonatype.

Note: mongo-scala-driver requires the following dependencies: mongo-scala-bson, bson, mongodb-driver-core, and mongodb-driver-async.