For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

MutableCapabilitiesMetadata

Describes the capabilities of a component in a mutable way. This interface can be used to adjust the capabilities of a published component via metadata rules (see org.gradle.api.artifacts.dsl.ComponentMetadataHandler.

Since

4.7

Functions

Link copied to clipboard
abstract fun addCapability(group: String, name: String, version: String)
Adds a new capability.
Link copied to clipboard
Returns an immutable vew of the capabilities.
Link copied to clipboard
abstract fun getCapabilities(): List<out Capability>
Returns an immutable view of the capabilities.
Link copied to clipboard
abstract fun removeCapability(group: String, name: String)
Removes a capability.