Slackbot
07/07/2022, 3:57 PMmelix
07/07/2022, 4:02 PMforce
is a hammer, which is also purely local to the project being resolved. It will ignore anything else and is somehow subject to ordering issues. A strictly
is a proper dependency version declaration, which is used during resolution as any other information. For example it will participate in conflict resolution and fail if it finds conflicting strictly
clauses. Also it's published, which means that consumers will get the strictly.melix
07/07/2022, 4:02 PMstrictly
is a better designed solution for force
.tony
07/07/2022, 4:10 PMmelix
07/07/2022, 4:11 PMforce
would be faster, but no numbers to back that statement.tony
07/07/2022, 4:12 PMtony
07/07/2022, 4:13 PMXavier Ducrohet
07/07/2022, 5:15 PMforce
option. Every time I've asked I've been told not to use ittony
07/07/2022, 6:09 PMtony
07/07/2022, 6:10 PMgetPlugins()
but instead getPluginManager()
without any explanation why the latter should be preferredmelix
07/07/2022, 6:31 PMforce
is a hammer which is inherently broken. Depending on when the force is seen first (when it's on a dependency), you get different results. When it's on a configuration, it doesn't propagate to consumers, which is, IMO, another reason to avoid it. So, prefer strictly
. This is the only mechanism which is consistent and would give you better error messages in case of conflicts.tony
07/07/2022, 6:33 PMJendrik Johannes
07/08/2022, 6:18 AMmelix
07/08/2022, 7:05 AMforce
is deprecated on an ExternalDependency
, but not on a ResolutionStrategy
.