api / org.gradle.api.artifacts.maven / MavenDeployment

MavenDeployment

interface MavenDeployment

Represents the artifacts which will be deployed to a Maven repository. You can use this interface to modify the set of artifacts.

Functions

addArtifact

abstract fun addArtifact(artifact: PublishArtifact): Unit

Adds an additional artifact to this deployment.

getArtifactId

abstract fun getArtifactId(): String

Returns the artifact ID for this deployment.

getArtifacts

abstract fun getArtifacts(): MutableSet<PublishArtifact>

Returns the artifacts which will be deployed. Includes the POM artifact.

getAttachedArtifacts

abstract fun getAttachedArtifacts(): MutableSet<PublishArtifact>

Returns the additional artifacts for this deployment.

getGroupId

abstract fun getGroupId(): String

Returns the group ID for this deployment.

getMainArtifact

abstract fun getMainArtifact(): PublishArtifact

Returns the main artifact for this deployment.

getPackaging

abstract fun getPackaging(): String

Returns the packaging for this deployment.

getPomArtifact

abstract fun getPomArtifact(): PublishArtifact

Returns the POM for this deployment.

getVersion

abstract fun getVersion(): String

Returns the version for this deployment.