api / org.gradle.api.artifacts / DependencyArtifact / getExtension

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.

See Also
#getType()