Search in sources :

Example 1 with ComponentSelectionInternal

use of org.gradle.api.internal.artifacts.ComponentSelectionInternal 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();
}
Also used : DefaultComponentSelection(org.gradle.api.internal.artifacts.DefaultComponentSelection) ComponentSelectionInternal(org.gradle.api.internal.artifacts.ComponentSelectionInternal)

Aggregations

ComponentSelectionInternal (org.gradle.api.internal.artifacts.ComponentSelectionInternal)1 DefaultComponentSelection (org.gradle.api.internal.artifacts.DefaultComponentSelection)1