# ModuleDependencyCapabilitiesHandler

interface ModuleDependencyCapabilitiesHandler

The capabilities requested for a dependency. This is used in variant-aware dependency management, to select only variants which provide the requested capabilities. By default, Gradle will only look for variants which provide the "implicit" capability, which corresponds to the GAV coordinates of the component. If the user calls methods on this handler, then the requirements change and explicit capabilities are required.

#### Since

5.3

## Functions

requireCapabilities
Link copied to clipboard
abstract fun requireCapabilities(capabilityNotations: Array<Any>)
Requires multiple capabilities.
requireCapability
Link copied to clipboard
abstract fun requireCapability(capabilityNotation: Any)
Requires a single capability.
requireFeature
Link copied to clipboard
@Incubating
abstract fun requireFeature(featureName: String)
Require a capability of a component based on the name of the feature provided by the component.
@Incubating
abstract fun requireFeature(featureName: Provider<String>)
Lazily require a capability of a component based on the name of the feature provided by the component.