Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gradle.api.artifacts
Class PublishInstruction

    java.lang.Object
      org.gradle.api.artifacts.PublishInstruction

    class PublishInstruction

Uploading details for artifacts produced by a project.

author:
  Hans Dockter

Constructor Summary
`PublishInstruction()` Creates a publish instruction for not uploading an module descriptor file.
`PublishInstruction(boolean uploadDescriptor, File descriptorDestination)` Creates a publish instruction.

Method Summary
`boolean` | `equals(java.lang.Object o)`
`File` | `getDescriptorDestination()` Returns the file destination where to create the ivy.xml file.
`int` | `hashCode()`
`boolean` | `isUploadDescriptor()` Returns whether an xml module descriptor file should be uploaded or not.

Methods inherited from class java.lang.Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll

Constructor Detail

### PublishInstruction

    public PublishInstruction()

  Creates a publish instruction for not uploading an module descriptor file.

### PublishInstruction

    public PublishInstruction(boolean uploadDescriptor, File descriptorDestination)

  Creates a publish instruction. If `uploadDescriptor` is set to true and the target destination is an ivy repository, the ivy file destination needs to be specified.
  param:
    uploadDescriptor
  param:
    descriptorDestination

Method Detail

### equals

    @Override
    public boolean equals(java.lang.Object o)

### getDescriptorDestination

    public File getDescriptorDestination()

  Returns the file destination where to create the ivy.xml file. Can be null.

### hashCode

    @Override
    public int hashCode()

### isUploadDescriptor

    public boolean isUploadDescriptor()

  Returns whether an xml module descriptor file should be uploaded or not.

Groovy Documentation