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

IvyArtifact

interface IvyArtifact : PublicationArtifact

An artifact published as part of a IvyPublication.

Functions

getClassifier

abstract fun getClassifier(): String

The classifier used to publish the artifact file. A null value (the default) indicates that this artifact will be published without a classifier.

getConf

abstract fun getConf(): String

A comma separated list of public configurations in which this artifact is published. The '*' wildcard is used to designate that the artifact is published in all public configurations. A null value (the default) indicates that this artifact will be published without a conf attribute.

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.

getName

abstract fun getName(): String

The name used to publish the artifact file, never null. Defaults to the name of the module that this artifact belongs to.

getType

abstract fun getType(): String

The type used to publish the artifact file, never null.

setClassifier

abstract fun setClassifier(classifier: String): Unit

Sets the classifier used to publish the artifact file.

setConf

abstract fun setConf(conf: String): Unit

Sets a comma separated list of public configurations in which this artifact is published. The '*' wildcard can be used to designate that the artifact is published in all public configurations.

setExtension

abstract fun setExtension(extension: String): Unit

Sets the extension used to publish the artifact file.

setName

abstract fun setName(name: String): Unit

Sets the name used to publish the artifact file.

setType

abstract fun setType(type: String): Unit

Sets the type used to publish the artifact file.

Inherited Functions

builtBy

abstract fun builtBy(vararg tasks: Any): Unit

Registers some tasks which build this artifact.

getFile

abstract fun getFile(): File

The actual file contents to publish.