Schnittstelle ArtifactRepository

Alle bekannten Unterschnittstellen:
FlatDirectoryArtifactRepository, IvyArtifactRepository, MavenArtifactRepository, PrebuiltLibraries

public interface ArtifactRepository
A repository for resolving and publishing artifacts.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    content(Action<? super RepositoryContentDescriptor> configureAction)
    Configures the content of this repository.
    Returns the name for this repository.
    void
    Sets the name for this repository.
  • Methodendetails

    • getName

      String getName()
      Returns the name for this repository. A name must be unique amongst a repository set. A default name is provided for the repository if none is provided.

      The name is used in logging output and error reporting to point to information related to this repository.

      Gibt zurück:
      The name.
    • setName

      void setName(String name)
      Sets the name for this repository. If this repository is to be added to an ArtifactRepositoryContainer (including RepositoryHandler), its name cannot be changed after it has been added to the container.
      Parameter:
      name - The name. Must not be null.
      Löst aus:
      IllegalStateException - If the name is set after it has been added to the container.
    • content

      void content(Action<? super RepositoryContentDescriptor> configureAction)
      Configures the content of this repository.
      Parameter:
      configureAction - the configuration action
      Seit:
      5.1