Schnittstelle PublishArtifact

Alle Superschnittstellen:
Buildable
Alle bekannten Unterschnittstellen:
ConfigurablePublishArtifact
Alle bekannten Implementierungsklassen:
org.gradle.api.internal.artifacts.publish.AbstractPublishArtifact, Signature

public interface PublishArtifact extends Buildable

A PublishArtifact is an artifact produced by a project.

  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    Returns the classifier of this published artifact, if any.
    Returns the date that should be used when publishing this artifact.
    Returns the extension of this published artifact.
    Returns the file of this artifact.
    Returns the name of the artifact.
    Returns the type of the published artifact.

    Von Schnittstelle geerbte Methoden org.gradle.api.Buildable

    getBuildDependencies
  • Methodendetails

    • getName

      String getName()
      Returns the name of the artifact.
      Gibt zurück:
      The name. Never null.
    • getExtension

      String getExtension()
      Returns the extension of this published artifact. Often the extension is the same as the type, but sometimes this is not the case. For example for an ivy XML module descriptor, the type is ivy and the extension is xml.
      Gibt zurück:
      The extension. Never null.
    • getType

      String getType()
      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.
      Gibt zurück:
      The type. Never null.
    • getClassifier

      @Nullable String getClassifier()
      Returns the classifier of this published artifact, if any.
      Gibt zurück:
      The classifier. May be null.
    • getFile

      File getFile()
      Returns the file of this artifact.
      Gibt zurück:
      The file. Never null.
    • getDate

      @Nullable Date getDate()
      Returns the date that should be used when publishing this artifact. This is used in the module descriptor accompanying this artifact (the ivy.xml). If the date is not specified, the current date is used. If this artifact is published without an module descriptor, this property has no relevance.
      Gibt zurück:
      The date. May be null.