toggle menu
gradle
8.11.1
API
switch theme
search in API
gradle
/
org.gradle.api.artifacts
/
ConfigurationVariant
Configuration
Variant
API
interface
ConfigurationVariant
:
Named
,
HasConfigurableAttributes
<
SELF
>
(
source
)
Represents some variant of an outgoing configuration.
Since
3.3
Members
Functions
artifact
Link copied to clipboard
API
abstract
fun
artifact
(
notation
:
Any
)
Adds an artifact to this variant.
abstract
fun
artifact
(
notation
:
Any
,
configureAction
:
Action
<
in
ConfigurablePublishArtifact
>
)
Adds an artifact to this variant, configuring it using the given action.
attributes
Link copied to clipboard
API
abstract
fun
attributes
(
action
:
Action
<
in
AttributeContainer
>
)
:
SELF
get
Artifacts
Link copied to clipboard
API
abstract
fun
getArtifacts
(
)
:
PublishArtifactSet
Returns the artifacts associated with this variant.
get
Attributes
Link copied to clipboard
API
abstract
fun
getAttributes
(
)
:
AttributeContainer
get
Description
Link copied to clipboard
API
@
Incubating
abstract
fun
getDescription
(
)
:
Optional
<
String
>
Returns an optional note describing this variant.
get
Name
Link copied to clipboard
API
abstract
fun
getName
(
)
:
String