# SoftwareComponentVariant

interface SoftwareComponentVariant : HasAttributes, Named(source)

A software component variant, which has a number of artifacts, dependencies, constraints and capabilities, and that can be published to various formats (Gradle metadata, POM, ivy.xml, ...)

#### Since

5.3

## Functions

getArtifacts
Link copied to clipboard
abstract fun getArtifacts(): Set<out PublishArtifact>
Returns the artifacts.
getAttributes
Link copied to clipboard
abstract fun getAttributes(): AttributeContainer
Returns the attributes
getCapabilities
Link copied to clipboard
abstract fun getCapabilities(): Set<out Capability>
Returns the capabilities.
getDependencies
Link copied to clipboard
abstract fun getDependencies(): Set<out ModuleDependency>
Returns the dependencies.
getDependencyConstraints
Link copied to clipboard
abstract fun getDependencyConstraints(): Set<out DependencyConstraint>
Returns the dependency constraints.
getGlobalExcludes
Link copied to clipboard
abstract fun getGlobalExcludes(): Set<ExcludeRule>
Returns the global excludes.
getName
Link copied to clipboard
abstract fun getName(): String
The object's name.