Class PortalPublisherDestination
java.lang.Object
org.jdrupes.builder.mvnrepo.MvnPublishingDestination
org.jdrupes.builder.mvnrepo.PortalPublisherDestination
A Maven publishing destination that publishes releases using the Sonatype Publish Portal API.
Instead of uploading files individually, this implementation of
MvnPublishingDestination bundles all artifacts into a single ZIP
release bundle and uploads it via a multipart HTTP request. It is the
modern recommended way to publish releases to Maven Central.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new portal publisher destination. -
Method Summary
Modifier and TypeMethodDescriptionPublish the release automatically.booleanReturns if this destination requires checksum artifacts to be passed toMvnPublishingDestination.publish(org.jdrupes.builder.api.BuildContext,org.jdrupes.builder.mvnrepo.MvnPublisher,org.eclipse.aether.artifact.Artifact,java.util.List<org.eclipse.aether.artifact.Artifact>).Returns the upload URI.Sets the upload URI.Methods inherited from class MvnPublishingDestination
accepts, credentials, id, id, repositoryPassword, repositoryUser
-
Constructor Details
-
PortalPublisherDestination
public PortalPublisherDestination()Initializes a new portal publisher destination.
The id is initialized with "central". This allows the credentials from the server section in
settings.xmlwith this id to be used as fallbacks.
-
-
Method Details
-
requiresChecksumArtifacts
Description copied from class:MvnPublishingDestinationReturns if this destination requires checksum artifacts to be passed toMvnPublishingDestination.publish(org.jdrupes.builder.api.BuildContext,org.jdrupes.builder.mvnrepo.MvnPublisher,org.eclipse.aether.artifact.Artifact,java.util.List<org.eclipse.aether.artifact.Artifact>).- Overrides:
requiresChecksumArtifactsin classMvnPublishingDestination- Returns:
- true, if successful
-
publishAutomatically
Publish the release automatically.- Returns:
- this destination
-
uploadUri
Sets the upload URI.- Parameters:
uri- the repository URI- Returns:
- this destination
-
uploadUri
-