api / org.gradle.api.artifacts / PublishArtifact / getType

getType

abstract fun getType(): String

Returns the type of the published 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.

Return
The type. Never null.