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.
Manages the all of dependencies throwgth project using Java Platform plugin.
Comparison with dependency management using buildSrc
.
- 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.
- 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.