spring-projects / spring-projects/spring-boot
Cross-reference Dedicated Spring Boot BOM for Consistent Resolution
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 81.5k
- Forks
- 42.7k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 65
Description
All Spring Boot (actually all Spring projects, but let us start with Boot) modules should be collected in a dedicated Spring Boot BOM that is then cross-references by every module. This would in turn ensure consistent resolution of all dependencies within a dependency tree. Well, at least on Gradle. According to @wilkinsona this does not work in Maven, I do not know, but even if it is Gradle only it is providing substantial value.
This screenshot illustrates consistent resolution of Jackson dependencies. This is made possible by the Jackson developers because they cross-reference their own BOM in every module of theirs, e.g.:
The same is possible in Gradle, example build setup:
project(":bom") {
apply<JavaPlatformPlugin>()
dependencies {
constraints {
api(project(":a"))
api(project(":b"))
}
}
}
project(":a") {
apply<JavaLibraryPlugin>()
dependencies {
api(platform(project(":bom")))
}
}
project(":b") {
apply<JavaLibraryPlugin>()
dependencies {
api(platform(project(":bom")))
}
}
I am happy to help with this if there is interest.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the existing module and dependency-management setup, then compare it with the Gradle Java platform example in the issue. Determine how a dedicated Spring Boot BOM could be cross-referenced by each module and verify consistent dependency resolution; done means the approach works for the supported Gradle build without disrupting other dependency management.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100