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.

VariantVersionMappingStrategy

Defines the version mapping strategy when publishing, for a specific variant.

Since

5.2

Functions

Link copied to clipboard
abstract fun fromResolutionOf(configurationName: String)
abstract fun fromResolutionOf(configuration: Configuration)
Declares that this variant should use versions from the resolution of the configuration provided as an argument.
Link copied to clipboard
abstract fun fromResolutionResult()
Declares that this variant should use versions from the resolution of a default configuration chosen by Gradle.