pablozki
02/24/2025, 8:31 PMpablozki
02/24/2025, 8:43 PMVampire
02/24/2025, 9:37 PMBut I thought gradle will be smart enough to notice these empty versions belong to a BOM so it should resolve them from the BOMNeither Gradle nor Maven nor any other software supporting POMs would do that, in that POM is not a BOM referenced, but a dependency that happens to be named
sdk-bom, that is a very big difference.
The dependencies don't specify versions as I haven't figured out a way to extract the versions from the BOM.https://docs.gradle.org/current/userguide/publishing_maven.html#publishing_maven:resolved_dependencies
pablozki
02/25/2025, 6:26 AMversionMapping{...} DSL, the versions keep resolving to null.
I also tried adding
<type>pom</type>
<scope>import</scope>
To the BOM dependency in the generated POM.xml file but the project importing the library keeps complaining about the empty versionsVampire
02/25/2025, 8:32 AMpablozki
02/25/2025, 1:42 PMVampire
02/25/2025, 2:23 PMpablozki
02/25/2025, 5:30 PMproject(":module") modules dependencies, they came out to the pom.xml file with a different artifact name than the one I wanted. It matches the module name and I wanted a different one. I need to append the flavor at the end of the artifact name.
I will try again without the custom pom.xml generation and see what I can getVampire
02/25/2025, 5:47 PMwithXml { ... } to just fix up what needs to be changed.