with Module
Adds a component selection rule that will apply to the specified module. Each rule will receive a ComponentSelection object as an argument.
Return
this
Parameters
the module to apply this rule to in "group:module" format or as a org.gradle.api.artifacts.ModuleIdentifier
the Action that implements a rule to be applied
Adds a component selection rule that will apply to the specified module. Each rule will receive a ComponentSelection object as an argument.
Return
this
Parameters
the module to apply this rule to in "group:module" format or as a org.gradle.api.artifacts.ModuleIdentifier
the Closure that implements a rule to be applied
Adds a rule-source backed component selection rule that will apply to the specified module. 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
the module to apply this rule to in "group:module" format or as a org.gradle.api.artifacts.ModuleIdentifier
an instance providing a rule implementation