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

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.

Authors:
  Hans Dockter

Constructor Summary
`Upload()`

Method Summary
`FileCollection` | `getArtifacts()` Returns the artifacts which will be uploaded.
`Configuration` | `getConfiguration()`
`java.io.File` | `getDescriptorDestination()`
`RepositoryHandler` | `getRepositories()`
`boolean` | `isUploadDescriptor()`
`RepositoryHandler` | `repositories(groovy.lang.Closure configureClosure)`
`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()

### getDescriptorDestination

    public java.io.File getDescriptorDestination()

### getRepositories

    public RepositoryHandler getRepositories()

### isUploadDescriptor

    public boolean isUploadDescriptor()

### repositories

    public RepositoryHandler repositories(groovy.lang.Closure configureClosure)

### 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