api / org.gradle.api.attributes / AttributesSchema / getMatchingStrategy

getMatchingStrategy

abstract fun <T : Any> getMatchingStrategy(attribute: Attribute<T>): AttributeMatchingStrategy<T>

Returns the matching strategy for a given attribute.

Parameters

attribute - the attribute

- the type of the attribute

Exceptions

IllegalArgumentException - When no strategy is available for the given attribute.

Return
the matching strategy for this attribute.