@Incubating public interface VersionMappingStrategy
Modifier and Type | Method | Description |
---|---|---|
void |
allVariants(Action<? super VariantVersionMappingStrategy> action) |
Configures the version mapping strategy for all variants
|
void |
usage(String usage,
Action<? super VariantVersionMappingStrategy> action) |
A short hand method to configure the variants which matches the provided Usage attribute.
|
<T> void |
variant(Attribute<T> attribute,
T attributeValue,
Action<? super VariantVersionMappingStrategy> action) |
Configures the version mapping strategy for the variant which matches the provided
attribute value.
|
void allVariants(Action<? super VariantVersionMappingStrategy> action)
action
- the configuration action<T> void variant(Attribute<T> attribute, T attributeValue, Action<? super VariantVersionMappingStrategy> action)
attribute
- the attribute to findattributeValue
- the attribute valueaction
- the configuration actionvoid usage(String usage, Action<? super VariantVersionMappingStrategy> action)
usage
- the usage to look foraction
- the configuration action