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

## org.gradle.api.tasks
[Java] Class Upload

    java.lang.Object
      org.gradle.api.internal.ConventionTask
          org.gradle.api.tasks.Upload

    public class Upload
    extends ConventionTask

Uploads the artifacts of a Configuration to a set of repositories.

Authors:
  Hans Dockter

Constructor Summary
`Upload()`

Method Summary
`FileCollection` | `getArtifacts()` Returns the artifacts which will be uploaded.
`Configuration` | `getConfiguration()` Returns the configuration to upload.
`java.io.File` | `getDescriptorDestination()` Returns the path to generate the dependency descriptor to.
`RepositoryHandler` | `getRepositories()` Returns the repositories to upload to.
`boolean` | `isUploadDescriptor()` Specifies whether the dependency descriptor should be uploaded.
`RepositoryHandler` | `repositories(groovy.lang.Closure configureClosure)` Configures the set of repositories to upload to.
`void` | `setConfiguration(Configuration configuration)`
`void` | `setDescriptorDestination(java.io.File descriptorDestination)`
`void` | `setRepositories(RepositoryHandler repositories)`
`void` | `setUploadDescriptor(boolean uploadDescriptor)`
`protected void` | `upload()`

Constructor Detail

### Upload

    public Upload()

Method Detail

### getArtifacts

    @InputFiles
    public FileCollection getArtifacts()

  Returns the artifacts which will be uploaded.
  Returns:
    the artifacts.

### getConfiguration

    public Configuration getConfiguration()

  Returns the configuration to upload.

### getDescriptorDestination

    public java.io.File getDescriptorDestination()

  Returns the path to generate the dependency descriptor to.

### getRepositories

    public RepositoryHandler getRepositories()

  Returns the repositories to upload to.

### isUploadDescriptor

    public boolean isUploadDescriptor()

  Specifies whether the dependency descriptor should be uploaded.

### repositories

    public RepositoryHandler repositories(groovy.lang.Closure configureClosure)

  Configures the set of repositories to upload to.

### setConfiguration

    public void setConfiguration(Configuration configuration)

### setDescriptorDestination

    public void setDescriptorDestination(java.io.File descriptorDestination)

### setRepositories

    public void setRepositories(RepositoryHandler repositories)

### setUploadDescriptor

    public void setUploadDescriptor(boolean uploadDescriptor)

### upload

    @TaskAction
    protected void upload()

Groovy Documentation