Casbah is released to the Sonatype repository, the latest Casbah build as is and supports the following scala versions: 2.9.3, 2.10.x, 2.11.x.
First, you should add the package repository to your Dependency/Build Manager. Our releases & snapshots are currently hosted at Sonatype; they should eventually sync to the Central Maven repository.:
https://oss.sonatype.org/content/repositories/releases/ /* For Releases */
https://oss.sonatype.org/content/repositories/snapshots/ /* For snapshots */
Set both of these repositories up in the appropriate manner - they contain Casbah as well as any specific dependencies you may require.
You can add Casbah to Maven with the following dependency block.
Please substitute
- <dependency>
<groupId>org.mongodb</groupId> <artifactId>casbah
$SCALA_VERSION$ </artifactId> <version> </version> <type>pom</type>
<dependency>
You can add Casbah to Ivy with the following dependency block.
Please substitute
<dependency org="org.mongodb" name="casbah
As Casbah is published in multiple modules installing it manually can take time, especially as the dependencies change depending on the Scala version you are using. To simplify this you can download a single all inclusive jar for your scala version:
http://oss.sonatype.org/content/repositories/releases/org/mongodb/casbah_2.11/2.8.0/casbah-alldep_2.11-2.8.0.jar http://oss.sonatype.org/content/repositories/releases/org/mongodb/casbah_2.10/2.8.0/casbah-alldep_2.10-2.8.0.jar http://oss.sonatype.org/content/repositories/releases/org/mongodb/casbah_2.9.3/2.8.0/casbah-alldep_2.9.3-2.8.0.jar
Once the jar is on your class path you will be able to use Casbah.
You can always get the latest source for Casbah from the github repository:
$ git clone git://github.com/mongodb/casbah
The master branch is once again the leading branch suitable for snapshots and releases and should be considered (and kept) stable.