api / org.gradle.api.attributes / MultipleCandidatesDetails / closestMatch

closestMatch

abstract fun closestMatch(candidate: T): Unit

Calling this method indicates that the candidate is the closest match. It is allowed to call this method several times with different values, in which case it indicates that multiple candidates are equally compatible.

Parameters

candidate - the closest match