jvm-dependency-conflict-resolution
jvm-dependency-conflict-resolution copied to clipboard
Clarify on preferred way to configure conflict resolutions
The docs both mention
configurations.all {
resolutionStrategy.capabilitiesResolution {
withCapability("javax.mail:mail") { // Capability for which to make the decision
select("com.sun.mail:jakarta.mail:0") // The component to select
}
}
}
and
jvmDependencyConflicts {
conflictResolution {
// Customize resolution of capability conflicts
select(JAVAX_ACTIVATION_API, "com.sun.activation:jakarta.activation")
}
}
syntax. Are they semantically equivalent? Is one syntax preferable over the other?