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.

CompatibilityCheckDetails

Provides context about attribute compatibility checks, and allows the user to define when an attribute is compatible with another.

A compatibility check will never be performed when the consumer and producer values are equal.

Since

3.3

Parameters

<T>

the concrete type of the attribute

Functions

Link copied to clipboard
abstract fun compatible()
Calling this method will indicate that the attributes are compatible.
Link copied to clipboard
@Nullable
abstract fun getConsumerValue(): @Nullable T
The value of the attribute as found on the consumer side.
Link copied to clipboard
@Nullable
abstract fun getProducerValue(): @Nullable T
The value of the attribute as found on the producer side.
Link copied to clipboard
abstract fun incompatible()
Calling this method will indicate that the attributes are incompatible.