HasAttributes, HasConfigurableAttributes<ConfigurationPublications>public interface ConfigurationPublications extends HasConfigurableAttributes<ConfigurationPublications>
You can use this interface associate artifacts with a configuration using the artifact(Object) 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.
| Modifier and Type | Method | Description | 
|---|---|---|
| void | artifact(Object notation) | Adds an outgoing artifact to this configuration. | 
| void | artifact(Object notation,
        Action<? super ConfigurablePublishArtifact> configureAction) | Adds an outgoing artifact to this configuration, configuring it using the given action. | 
| void | capability(Object notation) | Declares a capability for this configuration. | 
| PublishArtifactSet | getArtifacts() | Returns the artifacts associated with this configuration. | 
| Collection<? extends Capability> | getCapabilities() | Returns the capabilities declared for this configuration. | 
| NamedDomainObjectContainer<ConfigurationVariant> | getVariants() | Returns the variants of this configuration, if any. | 
| void | variants(Action<? super NamedDomainObjectContainer<ConfigurationVariant>> configureAction) | Configures the variants of this configuration. | 
getAttributesattributesPublishArtifactSet getArtifacts()
void artifact(Object notation)
See ArtifactHandler for details of the supported notations.
void artifact(Object notation, Action<? super ConfigurablePublishArtifact> configureAction)
See ArtifactHandler for details of the supported notations.
NamedDomainObjectContainer<ConfigurationVariant> getVariants()
void variants(Action<? super NamedDomainObjectContainer<ConfigurationVariant>> configureAction)
@Incubating void capability(Object notation)
notation - the notation
 Valid notations are a group:name:version string (e.g: org.test:capability:1.0, or a map
 with keys group, name and version.@Incubating Collection<? extends Capability> getCapabilities()