|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
@Incubating public interface ComponentMetadataHandler
Allows to modify the metadata of depended-on software components.
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"] } } } }
Method Summary | |
---|---|
void
|
eachComponent(Action rule)
Adds a rule to modify the metadata of depended-on software components. |
Method Detail |
---|
public void eachComponent(Action rule)
rule
- the rule to be added
Gradle API 1.12