use of org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.conflicts.UpgradeCapabilityResolver in project gradle by gradle.
the class DefaultArtifactDependencyResolver method createCapabilitiesConflictHandler.
private DefaultCapabilitiesConflictHandler createCapabilitiesConflictHandler(ResolutionStrategyInternal resolutionStrategy) {
DefaultCapabilitiesConflictHandler handler = new DefaultCapabilitiesConflictHandler();
if (resolutionStrategy.getConflictResolution() != ConflictResolution.strict) {
handler.registerResolver(new UpgradeCapabilityResolver());
handler.registerResolver(new LastCandidateCapabilityResolver());
}
return handler;
}
Aggregations