api / org.gradle.api.artifacts.type / ArtifactTypeDefinition

ArtifactTypeDefinition

@Incubating interface ArtifactTypeDefinition : HasAttributes, Named

Meta-data about a particular type of artifacts.

Since
4.0

Properties

JAR_TYPE

static val JAR_TYPE: String

Represents a JAR file.

JVM_CLASS_DIRECTORY

static val JVM_CLASS_DIRECTORY: String

Represents a directory tree containing class files.

JVM_RESOURCES_DIRECTORY

static val JVM_RESOURCES_DIRECTORY: String

Represents a directory tree containing jvm classpath resource files.

Functions

getAttributes

abstract fun getAttributes(): AttributeContainer

Defines the set of attributes to apply to a component that is packaged as an artifact of this type, when no other attributes are defined. For example, these attributes are applied when a Maven module contains an artifact with one of the extensions listed in #getFileNameExtensions().

getFileNameExtensions

abstract fun getFileNameExtensions(): MutableSet<String>

Returns the set of file name extensions that should be mapped to this artifact type. Defaults to the name of this type.

Inherited Functions

getName

abstract fun getName(): String

The object's name.

Must be constant for the life of the object.