gradle
8.2

# CapabilitiesResolution

interface CapabilitiesResolution

Allows configuring the capabilities resolution strategy. When there's a capability conflict, this object will let you select what to do in that situation. The configuration can either be global, for any capability by calling the all method, or it can be specific to a capability by calling one of the withCapability, withCapability or withCapability methods.

## Functions

all
Link copied to clipboard
abstract fun all(action: Action<out Any>)
Configures the resolution strategy of capability conflicts for all capabilities.
withCapability
Link copied to clipboard
abstract fun withCapability(notation: Any, action: Action<out Any>)
abstract fun withCapability(capability: Capability, action: Action<out Any>)
abstract fun withCapability(group: String, name: String, action: Action<out Any>)
Configures the resolution strategy of a specific capability.