api / org.gradle.api.publish.ivy / IvyArtifact / getExtension

getExtension

abstract fun getExtension(): String

The extension used to publish the artifact file, never null. For an artifact without an extension, this value will be an empty String.