addVariantsFromConfiguration

abstract fun addVariantsFromConfiguration(outgoingConfiguration: Configuration, action: Action<in ConfigurationVariantDetails>)(source)

Declares an additional variant to publish, corresponding to an additional feature.

This can be used to determine if the variant should be published or not, and to configure various options specific to the publishing format.

Parameters

outgoingConfiguration

the configuration corresponding to the variant to use as source of dependencies and artifacts

action

action executed to configure the variant prior to publishing