Java 类org.gradle.api.artifacts.ResolutionStrategy 实例源码

项目:srcdeps-gradle-plugin    文件:SrcdepsResolver.java   
/**
 * Walks through the Gradle {@link Configuration} and initiates the build of source dependencies
 */
public void resolveArtifacts() {
    if (configuration.isCanBeResolved()) {
        configuration.resolutionStrategy(new Action<ResolutionStrategy>() {
            @Override
            public void execute(ResolutionStrategy strategy) {
                strategy.eachDependency(dependencyAction);
            }
        });
    } else {
        log.warn("srcdeps: Configuration {} cannot be resolved", configuration);
    }

}
项目:Reer    文件:DefaultResolutionStrategy.java   
public ResolutionStrategy failOnVersionConflict() {
    mutationValidator.validateMutation(STRATEGY);
    this.conflictResolution = new StrictConflictResolution();
    return this;
}
项目:Reer    文件:DefaultResolutionStrategy.java   
public ResolutionStrategy eachDependency(Action<? super DependencyResolveDetails> rule) {
    mutationValidator.validateMutation(STRATEGY);
    dependencySubstitutions.allWithDependencyResolveDetails(rule);
    return this;
}
项目:Reer    文件:DefaultResolutionStrategy.java   
public ResolutionStrategy componentSelection(Action<? super ComponentSelectionRules> action) {
    action.execute(componentSelectionRules);
    return this;
}
项目:Reer    文件:DefaultResolutionStrategy.java   
public ResolutionStrategy dependencySubstitution(Action<? super DependencySubstitutions> action) {
    action.execute(dependencySubstitutions);
    return this;
}
项目:Reer    文件:DefaultConfiguration.java   
@Override
public Configuration resolutionStrategy(Action<? super ResolutionStrategy> action) {
    action.execute(resolutionStrategy);
    return this;
}
项目:Pushjet-Android    文件:DefaultResolutionStrategy.java   
public ResolutionStrategy failOnVersionConflict() {
    this.conflictResolution = new StrictConflictResolution();
    return this;
}
项目:Pushjet-Android    文件:DefaultResolutionStrategy.java   
public ResolutionStrategy eachDependency(Action<? super DependencyResolveDetails> rule) {
    dependencyResolveRules.add(rule);
    return this;
}