-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
Stevo Slavić opened SPR-10480 and commented
Even though Spring framework is modular, in typical Spring based Java web application most if not all Spring framework modules get used as dependencies, directly or transitively (from other frameworks in Spring portfolio, internal or 3rd party frameworks).
Apache Maven via dependencyManagement section allows one to control consistency of direct and transitive dependency versions. From practical personal experience, even ones that apply it, do that in limited fashion for only direct dependencies. Also, listing all Spring modules unnecessarily clutters build script when better solution is possible.
It would be great if Spring supported achieving this consistency, by making this practice almost effortless and clean, through publishing a BOM pom.xml with every new Spring release. It should contain dependencyManagement section with all published Spring framework modules listed as dependencies. Instead of listing all Spring modules in dependencyManagement section of each new project, one could then just import spring-bom module.
Affects: 3.2.2
Issue Links:
- Add Maven 'bill-of-materials' project [SPR-11138] #15764 Add Maven 'bill-of-materials' project ("is superseded by")
6 votes, 5 watchers