all
Adds a simple component selection rule that will apply to all resolved components. Each rule will receive a ComponentSelection object as an argument.
Return
this
Parameters
selection Action
the Action that implements a rule to be applied
abstract fun all(@DelegatesTo(value = ComponentSelection::class ) closure: Closure<out Any>): ComponentSelectionRules(source)
Adds a component selection rule that will apply to all resolved components. Each rule will receive a ComponentSelection object as an argument.
Return
this
Parameters
closure
the Closure that implements a rule to be applied
Adds a rule-source backed component selection rule that will apply to all resolved components. The ruleSource provides the rule as exactly one rule method annotated with org.gradle.model.Mutate. This rule method:
- must return void.
- must have org.gradle.api.artifacts.ComponentSelection as its parameter.
Return
this
Parameters
rule Source
an instance providing a rule implementation