ðĶBill of Materials
How to declare dependencies without having to worry about version numbers
Last updated
How to declare dependencies without having to worry about version numbers
Last updated
Copyright 2024 Guillermo Calvo
Tracking multiple add-on versions for your project can quickly become cumbersome. In that situation, you can use the convenient Result Library Bill of Materials to centralize and align their versions. This ensures compatibility and simplifies dependency maintenance.
Maven's Bill of Materials POMs are special POM files that group dependency versions known to be valid and tested to work together, reducing the chances of having version mismatches.
The basic idea is that instead of specifying a version number for each Result library in your project, you can use this BOM to get a complete set of consistent versions.
Add this Maven dependency to your build:
Group ID | Artifact ID | Latest Version |
---|---|---|
To import the BOM using Maven, use the following:
To import the BOM using Gradle, use the following:
We discussed the benefits of using the Bill of Materials for managing dependencies in your project. With the BOM, you can eliminate the hassle of manually specifying version numbers, ensuring consistency and compatibility across all Result libraries.
com.leakyabstractions
result-bom