Upgrade to MongoDB 3

This commit upgrades to MongoDB 3. Dependency management has been added
for the new and preferred mongodb-driver artifact. The starter has
been updated to use this new artifact rather than monogo-java-driver.
Dependency management for mongo-java-driver has been retained to avoid
causing problems for people who have declared the dependency explicitly.
The auto-configuration for Embedded Mongo has also been updated to
use 3.2.2 by default.

Closes gh-3011
This commit is contained in:
Andy Wilkinson
2016-05-26 13:48:46 +01:00
parent 44b4df2d3d
commit 6f5bd2e13a
4 changed files with 9 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ public class EmbeddedMongoProperties {
/**
* Version of Mongo to use.
*/
private String version = "2.6.10";
private String version = "3.2.2";
private final Storage storage = new Storage();

View File

@@ -61,7 +61,7 @@ public class EmbeddedMongoAutoConfigurationTests {
@Test
public void defaultVersion() {
assertVersionConfiguration(null, "2.6.10");
assertVersionConfiguration(null, "3.2.2");
}
@Test