use of org.gradle.api.publish.ivy.internal.publication.IvyPublicationInternal in project gradle by gradle.
the class PublishToIvyRepository method publish.
@TaskAction
public void publish() {
IvyPublicationInternal publicationInternal = getPublicationInternal();
if (publicationInternal == null) {
throw new InvalidUserDataException("The 'publication' property is required");
}
IvyArtifactRepository repository = getRepository();
if (repository == null) {
throw new InvalidUserDataException("The 'repository' property is required");
}
getDuplicatePublicationTracker().checkCanPublish(publicationInternal, repository.getUrl(), repository.getName());
doPublish(publicationInternal, repository);
}
Aggregations