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.

usage

abstract fun usage(usage: String, action: Action<in VariantVersionMappingStrategy>)(source)

A short hand method to configure the variants which matches the provided Usage attribute. This is the recommended way to configure the mapping strategy for the general case.

Since

5.2

Parameters

usage

the usage to look for

action

the configuration action