PublishPortalDeployment

data class PublishPortalDeployment(project: Project, baseUrl: String, user: Provider<String>, password: Provider<String>, zipTask: TaskProvider<out ConventionTask>)

Lazy class acting as a container for stateful operations on Maven Central Portal.

Constructors

Link copied to clipboard
constructor(project: Project, baseUrl: String, user: Provider<String>, password: Provider<String>, zipTask: TaskProvider<out ConventionTask>)

Types

Link copied to clipboard
object Companion

Constants for the Central Portal Deployments.

Properties

Link copied to clipboard
val client: PublishingApi

The Publishing portal client.

Link copied to clipboard

Lazily computed staging repository descriptor.

Link copied to clipboard

THe zip file to upload.

Functions

Link copied to clipboard
suspend tailrec fun drop(waitAmongRetries: Duration = waitingTime)

Drops the repository. Must be called after close().

Link copied to clipboard
suspend tailrec fun release(waitAmongRetries: Duration = waitingTime)

Releases the deployment.

Link copied to clipboard
suspend fun upload(bundle: File, name: String = bundle.name, releaseAfterUpload: Boolean = false): String

Uploads a bundle to the Central Portal, returning the upload id.

Link copied to clipboard
suspend tailrec fun validate(waitAmongRetries: Duration = waitingTime)

Validates the deployment.