A component which can declare additional variants corresponding to features. When published to Maven POMs, the dependencies of those variants are exposed as optional dependencies. When published to Gradle metadata, the variants are published as is.




Link copied to clipboard
abstract fun addVariantsFromConfiguration(outgoingConfiguration: Configuration, action: Action<in ConfigurationVariantDetails>)
Declares an additional variant to publish, corresponding to an additional feature.
Link copied to clipboard
abstract fun getName(): String
Link copied to clipboard
abstract fun withVariantsFromConfiguration(outgoingConfiguration: Configuration, action: Action<in ConfigurationVariantDetails>)
Further configure previously declared variants.