use of org.gradle.api.internal.artifacts.DefaultComponentSelection in project gradle by gradle.
the class DefaultVersionedComponentChooser method isRejectedByRule.
@Nullable
private RejectedByRuleVersion isRejectedByRule(ModuleComponentIdentifier candidateIdentifier, Collection<SpecRuleAction<? super ComponentSelection>> rules, MetadataProvider metadataProvider) {
ComponentSelectionInternal selection = new DefaultComponentSelection(candidateIdentifier, metadataProvider);
rulesProcessor.apply(selection, rules, metadataProvider);
if (selection.isRejected()) {
return new RejectedByRuleVersion(candidateIdentifier, selection.getRejectionReason());
}
return null;
}
use of org.gradle.api.internal.artifacts.DefaultComponentSelection in project gradle by gradle.
the class DefaultVersionedComponentChooser method isRejectedByRules.
private boolean isRejectedByRules(ModuleComponentIdentifier candidateIdentifier, Collection<SpecRuleAction<? super ComponentSelection>> rules, MetadataProvider metadataProvider) {
ComponentSelectionInternal selection = new DefaultComponentSelection(candidateIdentifier);
rulesProcessor.apply(selection, rules, metadataProvider);
return selection.isRejected();
}
Aggregations