Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added documentation re the Spring gradle plugin #2

Open
wants to merge 1 commit into
base: spring-2.7.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.