Using gradle, in a projectA we import the resteasy BOM:
compile platform('com.fasterxml.jackson:jackson-bom:2.13.2')
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
Then in a projectB we import projectA
implementation("com.my.service:projectA:0.0.1-SNAPSHOT")
Now, when we compile projectB, jackson-datatype-jsr310 cannot be found. It cannot determine the version to use. Same if in projectB I want to import another jackson dependencies, that are defined in the BOM.
How can I automatically use the same version in projectB?