VersionMappingStrategy

The version mapping strategy for a publication. By default, Gradle will use the declared versions of a dependency directly. However in some situations it might be better to publish the resolved versions, or both when the metadata format supports it.

Since

5.2

Functions

Link copied to clipboard
Configures the version mapping strategy for all variants
Link copied to clipboard
abstract fun usage(usage: String, action: Action<in VariantVersionMappingStrategy>)
A short hand method to configure the variants which matches the provided Usage attribute.
Link copied to clipboard
abstract fun <T> variant(attribute: Attribute<T>, attributeValue: T, action: Action<in VariantVersionMappingStrategy>)
Configures the version mapping strategy for the variant which matches the provided attribute value.