Configuration Publications
Represents the outgoing artifacts associated with a configuration. These artifacts are used when the configuration is referenced during dependency resolution.
You can use this interface to associate artifacts with a configuration using the artifact methods. You can also define several variants of the configuration's artifacts. Each variant represents a set of artifacts that form some mutually exclusive usage of the component.
An implicit variant is defined for a configuration whenever any artifacts are attached directly to this object or inherited from another configuration.
Since
3.3
Functions
Link copied to clipboard
Lazily adds a collection of outgoing artifacts to this configuration.
abstract fun artifacts(provider: Provider<out Iterable<out Any>>, configureAction: Action<in ConfigurablePublishArtifact>)
Lazily adds a collection of outgoing artifacts to this configuration, configuring each artifact using the given action.
Link copied to clipboard
Link copied to clipboard
Declares a capability for this configuration.
Link copied to clipboard
Returns the artifacts associated with this configuration.
Link copied to clipboard
Link copied to clipboard
Returns the capabilities declared for this configuration.
Link copied to clipboard
Returns the variants of this configuration, if any.
Link copied to clipboard
Configures the variants of this configuration.