Interface Release

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
SnapshotReleaser

@ProviderType public interface Release extends Closeable
This object can be used to release a revision. The actual work will be done when this object is closed. This makes it convenient to do this in a try/resource block.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Set this release to abort
    void
    add(Archive archive, File in)
    Add an archive, a copy of the file is made
    void
    add(Archive archive, InputStream in)
    Add an archive
    void
    add(String extension, String classifier, InputStream in)
    Add an archive
    void
    Force an overwrite even if the artifact exists
    void
    setBuild(long timestamp, String build)
    Set the replacement for the SNAPSHOT part
    void
    setBuild(String timestamp, String build)
    Set the replacement for the SNAPSHOT part
    void
    Ensure that no remote update is done
    void
    setPassphrase(String passphrase)
    Set a pass phrase and indicate that the files must be signed.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • abort

      void abort()
      Set this release to abort
    • add

      void add(Archive archive, InputStream in) throws Exception
      Add an archive
      Throws:
      Exception
    • add

      void add(Archive archive, File in) throws Exception
      Add an archive, a copy of the file is made
      Throws:
      Exception
    • add

      void add(String extension, String classifier, InputStream in) throws Exception
      Add an archive
      Throws:
      Exception
    • setBuild

      void setBuild(long timestamp, String build) throws Exception
      Set the replacement for the SNAPSHOT part
      Throws:
      Exception
    • setBuild

      void setBuild(String timestamp, String build)
      Set the replacement for the SNAPSHOT part
    • setLocalOnly

      void setLocalOnly()
      Ensure that no remote update is done
    • force

      void force()
      Force an overwrite even if the artifact exists
    • setPassphrase

      void setPassphrase(String passphrase)
      Set a pass phrase and indicate that the files must be signed.
      Parameters:
      passphrase - the passphrase