Interface AdhocComponentWithVariants
- All Superinterfaces:
Named, SoftwareComponent
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.
- Since:
- 5.3
-
Nested Class Summary
Nested classes/interfaces inherited from interface Named
Named.Namer -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVariantsFromConfiguration(Configuration outgoingConfiguration, Action<? super ConfigurationVariantDetails> action) Declares an additional variant to publish, corresponding to an additional feature.
-
Method Details
-
addVariantsFromConfiguration
void addVariantsFromConfiguration(Configuration outgoingConfiguration, Action<? super ConfigurationVariantDetails> action) Declares an additional variant to publish, corresponding to an additional feature.- Parameters:
outgoingConfiguration- the configuration corresponding to the variant to use as source of dependencies and artifactsaction- the action to execute in order to determine if a configuration variant should be published or not
-