# ConfigurationPublications

interface ConfigurationPublications : HasConfigurableAttributes<SELF> (source)

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

artifact
Link copied to clipboard
abstract fun artifact(notation: Any)
Adds an outgoing artifact to this configuration.
abstract fun artifact(notation: Any, configureAction: Action<in ConfigurablePublishArtifact>)
Adds an outgoing artifact to this configuration, configuring it using the given action.
artifacts
Link copied to clipboard
abstract fun artifacts(provider: Provider<out Iterable<out Any>>)
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.
attributes
Link copied to clipboard
abstract fun attributes(action: Action<in AttributeContainer>): SELF
capability
Link copied to clipboard
abstract fun capability(notation: Any)
Declares a capability for this configuration.
getArtifacts
Link copied to clipboard
abstract fun getArtifacts(): PublishArtifactSet
Returns the artifacts associated with this configuration.
getAttributes
Link copied to clipboard
abstract fun getAttributes(): AttributeContainer
getCapabilities
Link copied to clipboard
abstract fun getCapabilities(): Collection<out Capability>
Returns the capabilities declared for this configuration.
getVariants
Link copied to clipboard
abstract fun getVariants(): NamedDomainObjectContainer<ConfigurationVariant>
Returns the variants of this configuration, if any.
variants
Link copied to clipboard
abstract fun variants(configureAction: Action<in NamedDomainObjectContainer<ConfigurationVariant>>)
Configures the variants of this configuration.