Slackbot
01/30/2024, 1:39 PMAaron Ferguson
01/30/2024, 2:27 PMenforcedPlatform needs to be considered with care if your software component can be consumed by others. This declaration is effectively transitive and so will apply to the dependency graph of your consumers. Unfortunately they will have to use exclude if they happen to disagree with one of the forced versions.
Instead, if your reusable software component has a strong opinion on some third party dependency versions, consider using a rich version declaration with a strictly."
From https://docs.gradle.org/current/userguide/platforms.html#sub:bom_importNiv Sahar
01/30/2024, 2:56 PMX --> implementation platform ('A:+')
X --> implementation platform (D:new_version)
A --> api platform(project(':B'))
B --> api platform(project(':C'))
C --> api enforcedPlatform("D:$old_version")
In the case above X receives D with a higher version. I thought that any enforcedPlatform in the graph will be enforced over other platforms.Niv Sahar
01/31/2024, 9:52 AM