use of org.gradle.api.publication.maven.internal.action.MavenPublishAction in project gradle by gradle.
the class AbstractMavenPublisher method publish.
public void publish(MavenNormalizedPublication publication, MavenArtifactRepository artifactRepository) {
LOGGER.info("Publishing to repository {}", artifactRepository);
MavenPublishAction deployTask = createDeployTask(publication.getPomFile(), mavenRepositoryLocator, artifactRepository);
addPomAndArtifacts(deployTask, publication);
execute(deployTask);
}
use of org.gradle.api.publication.maven.internal.action.MavenPublishAction in project gradle by gradle.
the class AbstractMavenResolver method publish.
private void publish() {
Set<MavenDeployment> mavenDeployments = getArtifactPomContainer().createDeployableFilesInfos();
for (MavenDeployment mavenDeployment : mavenDeployments) {
File pomFile = mavenDeployment.getPomArtifact().getFile();
MavenPublishAction publishAction = createPublishAction(pomFile, mavenRepositoryLocator);
beforeDeploymentActions.execute(mavenDeployment);
addArtifacts(publishAction, mavenDeployment);
execute(publishAction);
}
}
Aggregations