Search in sources :

Example 1 with DefaultDependencySubstitutionApplicator

use of org.gradle.api.internal.artifacts.ivyservice.dependencysubstitution.DefaultDependencySubstitutionApplicator 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;
}
Also used : DependencySubstitution(org.gradle.api.artifacts.DependencySubstitution) CachingDependencySubstitutionApplicator(org.gradle.api.internal.artifacts.ivyservice.dependencysubstitution.CachingDependencySubstitutionApplicator) DefaultDependencySubstitutionApplicator(org.gradle.api.internal.artifacts.ivyservice.dependencysubstitution.DefaultDependencySubstitutionApplicator) DependencySubstitutionApplicator(org.gradle.api.internal.artifacts.ivyservice.dependencysubstitution.DependencySubstitutionApplicator) CachingDependencySubstitutionApplicator(org.gradle.api.internal.artifacts.ivyservice.dependencysubstitution.CachingDependencySubstitutionApplicator) DefaultDependencySubstitutionApplicator(org.gradle.api.internal.artifacts.ivyservice.dependencysubstitution.DefaultDependencySubstitutionApplicator)

Aggregations

DependencySubstitution (org.gradle.api.artifacts.DependencySubstitution)1 CachingDependencySubstitutionApplicator (org.gradle.api.internal.artifacts.ivyservice.dependencysubstitution.CachingDependencySubstitutionApplicator)1 DefaultDependencySubstitutionApplicator (org.gradle.api.internal.artifacts.ivyservice.dependencysubstitution.DefaultDependencySubstitutionApplicator)1 DependencySubstitutionApplicator (org.gradle.api.internal.artifacts.ivyservice.dependencysubstitution.DependencySubstitutionApplicator)1