use of org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.conflicts.DefaultCapabilitiesConflictHandler 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;
}
use of org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.conflicts.DefaultCapabilitiesConflictHandler in project gradle by gradle.
the class DefaultArtifactDependencyResolver method createCapabilitiesConflictHandler.
private DefaultCapabilitiesConflictHandler createCapabilitiesConflictHandler(CapabilitiesResolutionInternal capabilitiesResolutionRules) {
DefaultCapabilitiesConflictHandler handler = new DefaultCapabilitiesConflictHandler();
handler.registerResolver(new UserConfiguredCapabilityResolver(capabilitiesResolutionRules));
// handler.registerResolver(new UpgradeCapabilityResolver());
handler.registerResolver(new LastCandidateCapabilityResolver());
handler.registerResolver(new RejectRemainingCandidates());
return handler;
}
use of org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.conflicts.DefaultCapabilitiesConflictHandler in project gradle by gradle.
the class DefaultArtifactDependencyResolver method createDependencyGraphBuilder.
private DependencyGraphBuilder createDependencyGraphBuilder(ComponentResolversChain componentSource, ResolutionStrategyInternal resolutionStrategy, GlobalDependencyResolutionRules globalRules, Spec<? super DependencyMetadata> edgeFilter, AttributesSchemaInternal attributesSchema, ModuleExclusions moduleExclusions, BuildOperationExecutor buildOperationExecutor) {
DependencyToComponentIdResolver componentIdResolver = componentSource.getComponentIdResolver();
ComponentMetaDataResolver componentMetaDataResolver = new ClientModuleResolver(componentSource.getComponentResolver(), dependencyDescriptorFactory);
ResolveContextToComponentResolver requestResolver = createResolveContextConverter();
ModuleConflictHandler conflictHandler = createModuleConflictHandler(resolutionStrategy, globalRules);
DefaultCapabilitiesConflictHandler capabilitiesConflictHandler = createCapabilitiesConflictHandler(resolutionStrategy.getCapabilitiesResolutionRules());
DependencySubstitutionApplicator applicator = createDependencySubstitutionApplicator(resolutionStrategy);
return new DependencyGraphBuilder(componentIdResolver, componentMetaDataResolver, requestResolver, conflictHandler, capabilitiesConflictHandler, edgeFilter, attributesSchema, moduleExclusions, buildOperationExecutor, applicator, componentSelectorConverter, attributesFactory, versionSelectorScheme, versionComparator.asVersionComparator(), versionParser);
}
Aggregations