all

Adds a rule action that may modify the metadata of any resolved software component.

Return

this

Parameters

rule

the rule to be added


abstract fun all(@DelegatesTo(value = ComponentMetadataDetails::class) rule: Closure<out Any>): ComponentMetadataHandler(source)

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

Parameters

rule

the rule to be added


abstract fun all(ruleSource: Any): ComponentMetadataHandler(source)

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:

Return

this

Parameters

ruleSource

the rule source object to be added


Adds a class based rule that may modify the metadata of any resolved software component.

Return

this

Since

4.9

Parameters

rule

the rule to be added


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.

Return

this

Since

4.9

Parameters

rule

the rule to be added

configureAction

the rule configuration