Search in sources :

Example 1 with UpgradeCapabilityResolver

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;
}
Also used : DefaultCapabilitiesConflictHandler(org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.conflicts.DefaultCapabilitiesConflictHandler) LastCandidateCapabilityResolver(org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.conflicts.LastCandidateCapabilityResolver) UpgradeCapabilityResolver(org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.conflicts.UpgradeCapabilityResolver)

Aggregations

DefaultCapabilitiesConflictHandler (org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.conflicts.DefaultCapabilitiesConflictHandler)1 LastCandidateCapabilityResolver (org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.conflicts.LastCandidateCapabilityResolver)1 UpgradeCapabilityResolver (org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.conflicts.UpgradeCapabilityResolver)1