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

## org.gradle.api.tasks
Class Upload

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

    class Upload
    extends ConventionTask

An upload task uploads files to the repositories assigned to it. The files that get uploaded are the artifacts of your project, if they belong to the configuration associated with the upload task.

author:
  Hans Dockter

Constructor Summary
`Upload()`

Method Summary
`Configuration` | `getConfiguration()`
`File` | `getDescriptorDestination()`
`RepositoryHandler` | `getRepositories()`
`boolean` | `isUploadDescriptor()`
`RepositoryHandler` | `repositories(Closure configureClosure)`
`void` | `setConfiguration(Configuration configuration)`
`void` | `setDescriptorDestination(File descriptorDestination)`
`void` | `setRepositories(RepositoryHandler repositories)`
`void` | `setUploadDescriptor(boolean uploadDescriptor)`
`protected void` | `upload()`

Constructor Detail

### Upload

    public Upload()

Method Detail

### getConfiguration

    public Configuration getConfiguration()

### getDescriptorDestination

    public File getDescriptorDestination()

### getRepositories

    public RepositoryHandler getRepositories()

### isUploadDescriptor

    public boolean isUploadDescriptor()

### repositories

    public RepositoryHandler repositories(Closure configureClosure)

### setConfiguration

    public void setConfiguration(Configuration configuration)

### setDescriptorDestination

    public void setDescriptorDestination(File descriptorDestination)

### setRepositories

    public void setRepositories(RepositoryHandler repositories)

### setUploadDescriptor

    public void setUploadDescriptor(boolean uploadDescriptor)

### upload

    @TaskAction
    protected void upload()

Groovy Documentation