- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for ComponentSelectionRules (0.24 sec)
-
subprojects/core-api/src/main/java/org/gradle/api/artifacts/ComponentSelectionRules.java
*/ @HasInternalProtocol public interface ComponentSelectionRules { /** * Adds a simple component selection rule that will apply to all resolved components. * Each rule will receive a {@link ComponentSelection} object as an argument. * * @param selectionAction the Action that implements a rule to be applied * @return this */ ComponentSelectionRules all(Action<? super ComponentSelection> selectionAction);
Registered: 2024-06-12 18:38 - Last Modified: 2023-03-31 08:53 - 5.5K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/dependencyManagement/customizingResolution-selectionRule/tests/componentSelectionRules.sample.conf
Laura Kassovic <******@****.***> 1701107622 -0800
Registered: 2024-06-12 18:38 - Last Modified: 2023-11-27 17:53 - 107 bytes - Viewed (0) -
platforms/documentation/docs/src/docs/dsl/org.gradle.api.artifacts.ComponentSelectionRules.xml
Laura Kassovic <******@****.***> 1701107622 -0800
Registered: 2024-06-12 18:38 - Last Modified: 2023-11-27 17:53 - 1.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/UserResolverChain.java
CachePolicy cachePolicy ) { this.componentSelectionRules = componentSelectionRules; VersionedComponentChooser componentChooser = new DefaultVersionedComponentChooser(versionComparator, versionParser, componentSelectionRules, attributesSchema);
Registered: 2024-06-12 18:38 - Last Modified: 2024-04-18 08:26 - 4.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolutionstrategy/DefaultComponentSelectionRules.java
return new DefaultRuleActionAdapter(ruleActionValidator, "ComponentSelectionRules"); } @Override public Collection<SpecRuleAction<? super ComponentSelection>> getRules() { return rules != null ? rules : Collections.emptySet(); } @Override public ComponentSelectionRules all(Action<? super ComponentSelection> selectionAction) {
Registered: 2024-06-12 18:38 - Last Modified: 2023-10-10 21:10 - 6.8K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/DefaultVersionedComponentChooserTest.groovy
getModuleVersionId() >> DefaultModuleVersionIdentifier.newId("group", "name", "1.2") } when: 0 * componentSelectionRules.apply(_, _) then: chooser.selectNewestComponent(one, two) == two when: 0 * componentSelectionRules.apply(_, _) then: chooser.selectNewestComponent(two, three) == three }
Registered: 2024-06-12 18:38 - Last Modified: 2024-05-15 17:38 - 17.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ComponentSelectionRulesInternal.java
import org.gradle.api.artifacts.ComponentSelectionRules; import org.gradle.internal.rules.RuleAction; import org.gradle.internal.rules.SpecRuleAction; import java.util.Collection; public interface ComponentSelectionRulesInternal extends ComponentSelectionRules { Collection<SpecRuleAction<? super ComponentSelection>> getRules(); ComponentSelectionRules addRule(SpecRuleAction<? super ComponentSelection> specRuleAction);
Registered: 2024-06-12 18:38 - Last Modified: 2023-10-10 21:10 - 1.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolutionstrategy/DefaultResolutionStrategySpec.groovy
then: 1 * validator.validateMutation(STRATEGY) when: strategy.componentSelection(new Action<ComponentSelectionRules>() { @Override void execute(ComponentSelectionRules componentSelectionRules) { componentSelectionRules.all(Actions.doNothing()) } }) then: 1 * validator.validateMutation(STRATEGY) }
Registered: 2024-06-12 18:38 - Last Modified: 2024-03-05 02:50 - 12.1K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/ComponentSelectionRulesTest.kt
val componentSelectionRules = mock<ComponentSelectionRules> { on { all(any<Action<ComponentSelection>>()) }.thenAnswer { it.executeActionOn(componentSelection) } } val resolutionStrategy = mock<ResolutionStrategy> { on { componentSelection(any<Action<ComponentSelectionRules>>()) }.thenAnswer {
Registered: 2024-06-12 18:38 - Last Modified: 2023-08-02 08:06 - 2.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/DefaultVersionedComponentChooser.java
private final ComponentSelectionRulesInternal componentSelectionRules; private final VersionParser versionParser; private final AttributesSchemaInternal attributesSchema; DefaultVersionedComponentChooser(VersionComparator versionComparator, VersionParser versionParser, ComponentSelectionRulesInternal componentSelectionRules, AttributesSchema attributesSchema) { this.versionComparator = versionComparator;
Registered: 2024-06-12 18:38 - Last Modified: 2023-12-13 17:41 - 11.9K bytes - Viewed (0)