Class PublishPortalDeployment
-
- All Implemented Interfaces:
public final class PublishPortalDeploymentLazy class acting as a container for stateful operations on Maven Central Portal.
-
-
Field Summary
Fields Modifier and Type Field Description private final PublishingApiclientprivate final StringdeploymentId
-
Constructor Summary
Constructors Constructor Description PublishPortalDeployment(Project project, String baseUrl, Provider<String> user, Provider<String> password, TaskProvider<out ConventionTask> zipTask)
-
Method Summary
Modifier and Type Method Description final PublishingApigetClient()The NexusClient. final StringgetDeploymentId()Lazily computed staging repository descriptor. final Stringupload(File bundle, String name, Boolean releaseAfterUpload)Uploads a bundle to the Central Portal, returning the upload id. final Stringupload(File bundle, String name)Uploads a bundle to the Central Portal, returning the upload id. final Stringupload(File bundle)Uploads a bundle to the Central Portal, returning the upload id. final Unitvalidate(Duration waitAmongRetries)Validates the deployment. final Unitrelease(Duration waitAmongRetries)Releases the deployment. final Unitdrop(Duration waitAmongRetries)Drops the repository. -
-
Method Detail
-
getClient
final PublishingApi getClient()
The NexusClient.
-
getDeploymentId
final String getDeploymentId()
Lazily computed staging repository descriptor.
-
upload
@JvmOverloads() final String upload(File bundle, String name, Boolean releaseAfterUpload)
Uploads a bundle to the Central Portal, returning the upload id.
-
upload
@JvmOverloads() final String upload(File bundle, String name)
Uploads a bundle to the Central Portal, returning the upload id.
-
upload
@JvmOverloads() final String upload(File bundle)
Uploads a bundle to the Central Portal, returning the upload id.
-
-
-
-