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 public final static StringPUBLISH_DEPLOYMENT_ID_PROPERTY_NAMEpublic final static StringVALIDATE_TASK_NAMEpublic final static StringDROP_TASK_NAMEpublic final static StringRELEASE_TASK_NAMEprivate final PublishingApiclientprivate final FilefileToUploadprivate 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 Publishing portal client. final FilegetFileToUpload()THe zip file to upload. 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 Publishing portal client.
-
getFileToUpload
final File getFileToUpload()
THe zip file to upload.
-
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.
-
-
-
-