Package org.gradle.api.publish.maven

# Interface MavenArtifact

All Superinterfaces:
  `Buildable`, `PublicationArtifact`

public interface MavenArtifact extends PublicationArtifact
An artifact published as part of a `MavenPublication`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Property<String>`
  `getClassifier()`
  The classifier used to publish the artifact file.
  `Property<String>`
  `getExtension()`
  The extension used to publish the artifact file.

  ### Methods inherited from interface org.gradle.api.Buildable

  `getBuildDependencies`

  ### Methods inherited from interface org.gradle.api.publish.PublicationArtifact

  `builtBy, getFile`

- ## Method Details

  - ### getExtension

    Property<String> getExtension()
    The extension used to publish the artifact file. For an artifact without an extension, this value will be an empty String.

  - ### getClassifier

    @Optional Property<String> getClassifier()
    The classifier used to publish the artifact file. An absent value (the default) indicates that this artifact will be published without a classifier.