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.

allVariants

abstract fun allVariants(action: Action<in VariantMetadata>)(source)

Add a rule for adjusting all variants of a component.

Since

4.5

Parameters

action

the action to be executed on each variant.