@Incubating public interface ComponentMetadataHandler
Example:
dependencies { components { eachComponent { ComponentMetadataDetails details -> if (details.id.group == "org.foo") { def version = details.id.version // assuming status is last part of version string details.status = version.substring(version.lastIndexOf("-") + 1) details.statusScheme = ["bronze", "silver", "gold", "platinum"] } } } }
Modifier and Type | Method and Description |
---|---|
void |
eachComponent(Action<? super ComponentMetadataDetails> rule)
Adds a rule to modify the metadata of depended-on software components.
|
void eachComponent(Action<? super ComponentMetadataDetails> rule)
rule
- the rule to be added