playground-gradle-bom-dep-manage
A sample project managing the dependencies using BoM.
đź“ť
Centralized dependency versions feature will be introduced at Gradle 7.x. That may solve all the dependency management issues.
Architecture
:platform
Manages the all of dependencies throwgth project using Java Platform plugin.
Pros/Cons
Comparison with dependency management using buildSrc
.
Pros
- Don't need to use
buildSrc
for the dependency management. - Don't need to re-compile
buildSrc
sources when the dependencies changed. - Dependabot and Renovate works!! See PRs.
Cons
- Needs to declare the dependencies with String like
implementation("group.id:artifact-id”)
on each submodule’sdependencies
block. - Needs to add
implementation(platform(project(":platform")))
on each submodule’sdependencies
block.