For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

AttributeMatchingStrategy

An attribute matching strategy is responsible for providing information about how an Attribute is matched during dependency resolution. In particular, it will tell if a value, provided by a consumer, is compatible with a value provided by a candidate.

Since

3.3

Parameters

<T>

the type of the attribute

Functions

Link copied to clipboard
Returns the compatibility rules.
Link copied to clipboard
Returns the disambiguation rules.
Link copied to clipboard
abstract fun ordered(comparator: Comparator<T>)
abstract fun ordered(pickLast: Boolean, comparator: Comparator<T>)
A short-hand way to define both a compatibility rule and a disambiguation rule based on an order defined by the provided Comparator.