api / org.gradle.api.artifacts / ArtifactIdentifier

ArtifactIdentifier

interface ArtifactIdentifier

The identifier for a module artifact.

Functions

getClassifier

abstract fun getClassifier(): String

Returns the classifier of this artifact, if any.

getExtension

abstract fun getExtension(): String

Returns the extension of this artifact. Often the extension is the same as the type, but sometimes this is not the case. For example for an ivy XML module descriptor, the type is ivy and the extension is xml.

getModuleVersionIdentifier

abstract fun getModuleVersionIdentifier(): ModuleVersionIdentifier

Returns the identifier of the module that owns this artifact.

getName

abstract fun getName(): String

Returns the name of this artifact.

getType

abstract fun getType(): String

Returns the type of this artifact. Often the type is the same as the extension, but sometimes this is not the case. For example for an ivy XML module descriptor, the type is ivy and the extension is xml.