variant

abstract fun <T> variant(attribute: Attribute<T>, attributeValue: T, action: Action<in VariantVersionMappingStrategy>)(source)

Configures the version mapping strategy for the variant which matches the provided attribute value.

Parameters

attribute

the attribute to find

attributeValue

the attribute value

action

the configuration action