Thomas Keller
11/23/2026, 10:06 AMlibs.versions.toml and the bill-of-material that will do the job via a platform(…) declaration encoded anywhere. Developers basically stumble upon the same issue all the time when they forget to specify the BOM alongside the dependency that they want to use. Would it therefor be a useful extension to introduce a bom.ref in addition to version.ref , just that the former needs to point to another artifact that is then used to align the versions?Philip W
11/23/2026, 10:13 AMVampire
11/23/2026, 10:56 AMbom.ref.
It intentionally is just a catalog of coordinates and versions without semantic meaning.
You can use an entry in different ways.
With different attributes for example (like using as bom or as library, or requesting a specific artifact, and so on).
So I doubt such a semantic addition will make it into the version catalog.
Also, if you use a bom for version alignment, that is not the right way anyway.
If a set of libraries depends that you use the same version amongst all of them, then that project should properly publish the alignment information using the Gradle Module Metadata.
Because just because you use in your projects the libraries without version and specify a BOM to supply the versions, you can still depend on some other library that depends on one of those libraries in a newer version, and then only that library is used in a newer version while the others still use the version from the BOM.
Of course you could force-downgrade then, but that library might then not work properly if it really needs the version it declares it needs.
If the project properly publishes the version alignment, then all the modules would be upgraded due to that one transitive dependency and thus you get a consistent set of dependencies.
So imho the much better way forward would be to bring all such multi-module projects to properly publish version alignment metadata for the benefit of all Gradle consumers.
See blog.gradle.org/alignment-with-gradle-module-metadata for more information on that.tony
11/23/2026, 7:43 PMThomas Keller
11/24/2026, 12:42 PMandroidx.core or androidx.test). Yes, for the latter they don’t even provide a BOM, but from my understanding the reason why Google introduced the Compose BOM in first place was also to give the individual artifacts the possibility to evolve independently from another, with different versions, so my fear is that we’ll see this kind of version chaos in Compose as well.Thomas Keller
11/24/2026, 12:44 PMThomas Keller
11/24/2026, 12:47 PMconfigurations.all { resolutionStrategy { eachDependency { … } } } where I list things that I want to have globally aligned.tony
11/24/2026, 6:00 PMplatform(...) declarations in your build scriptsThomas Keller
11/26/2026, 9:45 AM