withVariantsFromConfiguration

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

Further configure previously declared variants.

The action can be used to determine if the variant should be published or not, and to configure various options specific to the publishing format. Note that if multiple actions are added, they are executed in the order they were added.

Parameters

outgoingConfiguration

the configuration corresponding to the variant to configure with a given action

action

an additional action to be executed to configure the variant prior to publishing

Throws

if the specified variant was not already added to this component