@Incubating public interface OutgoingElementsBuilder
| Modifier and Type | Method | Description |
|---|---|---|
OutgoingElementsBuilder |
artifact(Object producer) |
Registers an artifact to be attached to this configuration.
|
OutgoingElementsBuilder |
capability(String group,
String name,
String version) |
Explicitly declares a capability provided by this outgoing configuration
|
OutgoingElementsBuilder |
extendsFrom(List<Provider<Configuration>> parentConfigurations) |
Allows setting the configurations this outgoing elements will inherit from.
|
OutgoingElementsBuilder |
extendsFrom(Configuration... parentConfigurations) |
Allows setting the configurations this outgoing elements will inherit from.
|
default OutgoingElementsBuilder |
extendsFrom(Provider<Configuration> configuration) |
Adds this configuration as a parent configuration
|
OutgoingElementsBuilder |
fromSourceSet(SourceSet sourceSet) |
If this method is called, the outgoing elements configuration will be automatically
configured to export the output of the source set.
|
OutgoingElementsBuilder |
providesApi() |
Tells that this elements configuration provides an API
|
OutgoingElementsBuilder |
providesAttributes(Action<? super JvmEcosystemAttributesDetails> refiner) |
Allows refining the attributes of this configuration in case the defaults are not
sufficient.
|
OutgoingElementsBuilder |
providesRuntime() |
Tells that this elements configuration provides a runtime
|
OutgoingElementsBuilder |
published() |
Configures this outgoing variant for publication.
|
OutgoingElementsBuilder |
withCapabilities(List<Capability> capabilities) |
Allows declaring the capabilities this outgoing configuration provides
|
OutgoingElementsBuilder |
withClassDirectoryVariant() |
Configures this outgoing configuration to provides a "classes directory" variant, which
is useful for intra and inter-project optimization, avoiding the creation of jar tasks
when the only thing which is required is the API of a component.
|
OutgoingElementsBuilder |
withDescription(String description) |
Sets the description for this outgoing elements
|
OutgoingElementsBuilder withDescription(String description)
description - the descriptionOutgoingElementsBuilder providesApi()
OutgoingElementsBuilder providesRuntime()
OutgoingElementsBuilder extendsFrom(Configuration... parentConfigurations)
parentConfigurations - the parent configurationsOutgoingElementsBuilder extendsFrom(List<Provider<Configuration>> parentConfigurations)
parentConfigurations - the parent configurationsdefault OutgoingElementsBuilder extendsFrom(Provider<Configuration> configuration)
configuration - the parent configurationOutgoingElementsBuilder fromSourceSet(SourceSet sourceSet)
sourceSet - the source set which consistutes an output to share with this configurationOutgoingElementsBuilder artifact(Object producer)
ConfigurationPublications.artifact(Object) method,
which includes task providers, or files.producer - the producerOutgoingElementsBuilder providesAttributes(Action<? super JvmEcosystemAttributesDetails> refiner)
refiner - the attributes refiner configurationOutgoingElementsBuilder withCapabilities(List<Capability> capabilities)
capabilities - the capabilitiesOutgoingElementsBuilder capability(String group, String name, String version)
group - the capability groupname - the capability nameversion - the capability versionOutgoingElementsBuilder withClassDirectoryVariant()
fromSourceSet(SourceSet)OutgoingElementsBuilder published()