use of org.gradle.api.internal.artifacts.ivyservice.dependencysubstitution.CachingDependencySubstitutionApplicator in project gradle by gradle.
the class DefaultArtifactDependencyResolver method createDependencySubstitutionApplicator.
private DependencySubstitutionApplicator createDependencySubstitutionApplicator(ResolutionStrategyInternal resolutionStrategy) {
Action<DependencySubstitution> rule = resolutionStrategy.getDependencySubstitutionRule();
DependencySubstitutionApplicator applicator;
if (Actions.<DependencySubstitution>doNothing() == rule) {
applicator = NO_OP;
} else {
applicator = new CachingDependencySubstitutionApplicator(new DefaultDependencySubstitutionApplicator(componentSelectionDescriptorFactory, rule, instantiator));
}
return applicator;
}
Aggregations