api / org.gradle.api.tasks / Upload

Upload

open class Upload : ConventionTask

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

Constructors

<init>

Upload()

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

Functions

getArtifacts

open fun getArtifacts(): FileCollection

Returns the artifacts which will be uploaded.

getConfiguration

open fun getConfiguration(): Configuration

Returns the configuration to upload.

getDescriptorDestination

open fun getDescriptorDestination(): File

Returns the path to generate the dependency descriptor to.

getRepositories

open fun getRepositories(): RepositoryHandler

Returns the repositories to upload to.

isUploadDescriptor

open fun isUploadDescriptor(): Boolean

Specifies whether the dependency descriptor should be uploaded.

repositories

open fun repositories(configureClosure: Closure<Any>): RepositoryHandler
open fun repositories(configureAction: Action<in RepositoryHandler>): RepositoryHandler

Configures the set of repositories to upload to.

setConfiguration

open fun setConfiguration(configuration: Configuration): Unit

setDescriptorDestination

open fun setDescriptorDestination(descriptorDestination: File): Unit

setUploadDescriptor

open fun setUploadDescriptor(uploadDescriptor: Boolean): Unit