api / org.gradle.api.artifacts / ModuleDependency / attributes

attributes

@Incubating abstract fun attributes(configureAction: Action<in AttributeContainer>): ModuleDependency

Overrides HasConfigurableAttributes.attributes

Mutates the attributes of this dependency. Attributes are used during dependency resolution to select the appropriate target variant, in particular when a single component provides different variants.

Parameters

configureAction - the attributes mutation action

Since
4.8