use of org.gradle.api.publish.maven.internal.publisher.MavenLocalPublisher in project gradle by gradle.
the class PublishToMavenLocal method publish.
@TaskAction
public void publish() {
final MavenPublicationInternal publication = getPublicationInternal();
if (publication == null) {
throw new InvalidUserDataException("The 'publication' property is required");
}
new PublishOperation(publication, "mavenLocal") {
@Override
protected void publish() throws Exception {
MavenPublisher localPublisher = new MavenLocalPublisher(getLoggingManagerFactory(), getMavenRepositoryLocator());
MavenPublisher staticLockingPublisher = new StaticLockingMavenPublisher(localPublisher);
MavenPublisher validatingPublisher = new ValidatingMavenPublisher(staticLockingPublisher);
validatingPublisher.publish(publication.asNormalisedPublication(), null);
}
}.run();
}
Aggregations