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.

requireCapability

abstract fun requireCapability(capabilityNotation: Any)(source)

Requires a single capability.

Since

5.3

Parameters

capabilityNotation

the capability notation (e.g. group:name:version), Providers of any notation are also accepted