jvm-dependency-conflict-resolution icon indicating copy to clipboard operation
jvm-dependency-conflict-resolution copied to clipboard

Clarify on preferred way to configure conflict resolutions

Open sschuberth opened this issue 6 months ago • 2 comments

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?

sschuberth avatar Aug 27 '24 11:08 sschuberth