api / org.gradle.api.attributes / CompatibilityCheckDetails

CompatibilityCheckDetails

@Incubating interface CompatibilityCheckDetails<T : Any>

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

Parameters

- the concrete type of the attribute

Since
3.3

Functions

compatible

abstract fun compatible(): Unit

Calling this method will indicate that the attributes are compatible.

getConsumerValue

abstract fun getConsumerValue(): T

The value of the attribute as found on the consumer side.

getProducerValue

abstract fun getProducerValue(): T

The value of the attribute as found on the producer side.

incompatible

abstract fun incompatible(): Unit

Calling this method will indicate that the attributes are incompatible.