Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | 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.AbstractTask
          org.gradle.api.DefaultTask
              org.gradle.api.internal.ConventionTask
                  org.gradle.api.tasks.Upload

All Implemented Interfaces:
  Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.IConventionAware, org.gradle.api.internal.TaskInternal, Task, org.gradle.util.Configurable<Task>

    public class Upload

extends org.gradle.api.internal.ConventionTask

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

Field Summary

Fields inherited from interface org.gradle.api.Task
`TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE`

Constructor Summary
`Upload()`

Method Summary
`FileCollection` | `getArtifacts()` Returns the artifacts which will be uploaded.
`Configuration` | `getConfiguration()` Returns the configuration to upload.
`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(Closure configureClosure)` Configures the set of repositories to upload to.
`void` | `setConfiguration(Configuration configuration)`
`void` | `setDescriptorDestination(File descriptorDestination)`
`void` | `setRepositories(RepositoryHandler repositories)`
`void` | `setUploadDescriptor(boolean uploadDescriptor)`
`protected void` | `upload()`

Methods inherited from class org.gradle.api.internal.ConventionTask
`conventionMapping, getConventionMapping, setConventionMapping`

Methods inherited from class org.gradle.api.internal.AbstractTask
`addValidator, captureStandardOutput, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, disableStandardOutputCapture, doFirst, doFirst, doLast, doLast, execute, getActions, getAdditionalProperties, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getDynamicObjectHelper, getEnabled, getExecuter, getGroup, getInputs, getLogger, getLogging, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getStandardOutputCapture, getState, getTaskDependencies, getTemporaryDir, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, onlyIf, onlyIf, property, setActions, setConvention, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setGroup, setName, setOnlyIf, setOnlyIf, setProject, setProperty, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### Upload

    public Upload()

Method Detail

### upload

    protected void upload()

### isUploadDescriptor

    public boolean isUploadDescriptor()

  Specifies whether the dependency descriptor should be uploaded.

### setUploadDescriptor

    public void setUploadDescriptor(boolean uploadDescriptor)

### getDescriptorDestination

    public File getDescriptorDestination()

  Returns the path to generate the dependency descriptor to.

### setDescriptorDestination

    public void setDescriptorDestination(File descriptorDestination)

### getRepositories

    public RepositoryHandler getRepositories()

  Returns the repositories to upload to.

### setRepositories

    public void setRepositories(RepositoryHandler repositories)

### getConfiguration

    public Configuration getConfiguration()

  Returns the configuration to upload.

### setConfiguration

    public void setConfiguration(Configuration configuration)

### repositories

    public RepositoryHandler repositories(Closure configureClosure)

  Configures the set of repositories to upload to.

### getArtifacts

    public FileCollection getArtifacts()

  Returns the artifacts which will be uploaded.

  Returns:
    the artifacts.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD