diff --git a/README.md b/README.md index c897f4f..dca4edc 100644 --- a/README.md +++ b/README.md @@ -33,4 +33,23 @@ dependency: You might find an example for different use cases in this [documentation](HowTo.md). As this documentation is generated on each build by running this code, it should work as expected:) - +### Spring Gradle Plugin io.spring.dependency-management + +The Spring gradle plugin `io.spring.dependency-management` sets a plethora of dependencies to particular versions. +One of its dependency management coordinates is `de.flapdoodle.embed:de.flapdoodle.embed.mongo:3.4.11`. +The recommended way to overwrite this dependency management coordinate set by the Spring gradle plugin +`io.spring.dependency-management` is to add the following code block to your `build.gradle`: +``` +dependencyManagement { + dependencies { + dependency group:'de.flapdoodle.embed', name:'de.flapdoodle.embed.mongo', version:'4.3.1' + } +} +``` +You can then check whether this was successful by listing the dependency management coordinates managed by the +Spring gradle plugin `io.spring.dependency-management`: +``` +gradle dependencyManagement +``` +This is no longer an issue in Spring Boot version 3.0.0 and later as the dependency management coordindate for +`de.flapdoodle.embed:de.flapdoodle.embed.mongo` was removed. \ No newline at end of file