Hi, I'm probably missing something very obvious he...
# dependency-management
m
Hi, I'm probably missing something very obvious here, but I cannot find a way to override a
strictly
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`:
Copy code
api enforcedPlatform("B-bom:...")
Where
B
contains:
Copy code
api enforcedPlatform("A-bom:V1")
Now in
C
I have:
Copy code
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:
Copy code
> 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}'