abstract fun all(rule: Action<in ComponentMetadataDetails>): ComponentMetadataHandler
Adds a rule action that may modify the metadata of any resolved software component.
Return
this
abstract fun all(rule: Closure<*>): ComponentMetadataHandler
Adds a rule closure that may modify the metadata of any resolved software component.
The supplied rule closure must declare a ComponentMetadataDetails as it's first parameter, allowing the component metadata to be modified.
In addition, the rule can declare additional (read-only) parameters, which may provide extra details about the component. The order of these additional parameters is not significant.
The following additional parameter types are supported:
Return
this
abstract fun all(ruleSource: Any): ComponentMetadataHandler
Adds a rule that may modify the metadata of any resolved software component.
The ruleSource is an Object that has a single rule method annotated with org.gradle.model.Mutate.
This rule method:
ruleSource
- the rule source object to be added
Return
this
abstract fun all(rule: Class<out ComponentMetadataRule>): ComponentMetadataHandler
Adds a class based rule that may modify the metadata of any resolved software component.
Return
this
Since
4.9
abstract fun all(rule: Class<out ComponentMetadataRule>, configureAction: Action<in ActionConfiguration>): ComponentMetadataHandler
Adds a class based rule that may modify the metadata of any resolved software component. The rule itself is configured by the provided configure action.
configureAction
- the rule configuration
Return
this
Since
4.9