Markus Maier
10/05/2023, 8:11 AMstrictly
constraint coming in via a platform I'm using.
My chain of dependencies is A -> B -> C
, and I want to update A in C for multiple backports, ideally without having to touch each version of B
in the chain. Is there a way to achieve that? How can I tell gradle to take the version from one platform instead of the other?
Originally I had in project `C`:
api enforcedPlatform("B-bom:...")
Where B
contains:
api enforcedPlatform("A-bom:V1")
Now in C
I have:
api platform("B-bom:...") {
exclude group: "...", module: "A-bom"
}
api enforcedPlatform("A-bom:V2")
But that only gives me this, so the exclude does not work:
> Cannot find a version of 'A-bom' that satisfies the version constraints:
Dependency path '...' (enforcedApiElements) --> 'A-bom:{strictly V2}'
Dependency path '...' (enforcedApiElements) --> 'B:...' (enforcedApiElements) --> 'A-bom:{strictly V1}'