Class PublicationExtractor<ActualPublication>
java.lang.Object
org.jfrog.gradle.plugin.artifactory.extractor.publication.PublicationExtractor<ActualPublication>
- Direct Known Subclasses:
IvyPublicationExtractor,MavenPublicationExtractor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddArtifactToDeployDetails(ActualPublication publication, org.jfrog.build.extractor.clientConfiguration.deploy.DeployDetails.Builder builder, PublishArtifactInfo artifactInfo) Adds a given artifact to deploy details in the given task destination.protected voidbuildAndPublishArtifactWithSignatures(File file, ActualPublication publication, String artifactId, String artifactExtension, String artifactType, String artifactClassifier, Map<QName, String> extraInfo) Build and publish the artifact and add it to deploy details.abstract voidextractDeployDetails(ActualPublication publication) Extract publication artifacts, creates deploy details for it and stores them at the given destinationvoidExtract *.module files publications.protected abstract ActualPublicationFind a publication by name.protected abstract StringgetPublicationArtifactId(ActualPublication publication) Return the artifact ID of the publication.protected abstract StringgetPublicationName(ActualPublication publication) Return the publication name.protected abstract booleanisApplicablePublicationType(Class<? extends org.gradle.api.publish.Publication> publicationType) Return true if the input publication type is of the type of subclass publication type.
-
Field Details
-
artifactoryTask
-
-
Constructor Details
-
PublicationExtractor
-
-
Method Details
-
extractDeployDetails
Extract publication artifacts, creates deploy details for it and stores them at the given destination- Parameters:
publication- - publication to extract details from
-
addArtifactToDeployDetails
protected abstract void addArtifactToDeployDetails(ActualPublication publication, org.jfrog.build.extractor.clientConfiguration.deploy.DeployDetails.Builder builder, PublishArtifactInfo artifactInfo) Adds a given artifact to deploy details in the given task destination.- Parameters:
publication- - Maven or Ivy publicationbuilder- - Deploy details builderartifactInfo- - The artifact info
-
getPublicationArtifactId
Return the artifact ID of the publication.- Parameters:
publication- - Maven or Ivy publication- Returns:
- the artifact ID of the publication
-
getPublicationName
Return the publication name. -
isApplicablePublicationType
protected abstract boolean isApplicablePublicationType(Class<? extends org.gradle.api.publish.Publication> publicationType) Return true if the input publication type is of the type of subclass publication type.- Parameters:
publicationType- - The publication type to check- Returns:
- true if the input publication type is of the type of subclass publication type
-
findPublicationDataByName
Find a publication by name. -
extractModuleInfo
public void extractModuleInfo()Extract *.module files publications. -
buildAndPublishArtifactWithSignatures
protected void buildAndPublishArtifactWithSignatures(File file, ActualPublication publication, String artifactId, String artifactExtension, String artifactType, String artifactClassifier, Map<QName, String> extraInfo) Build and publish the artifact and add it to deploy details. If the Signing plugin was used, do the same to the artifact's signatures.- Parameters:
file- - The file to publishpublication- - The publication to extract details fromartifactId- - The artifact IDartifactExtension- - The artifact extensionartifactType- - The artifact typeartifactClassifier- - The artifact classifierextraInfo- - Extra information to add to the deploy details
-