use of org.gradle.api.component.PublishableComponent in project gradle by gradle.
the class NativeBasePlugin method addPublicationFromVariant.
private void addPublicationFromVariant(SoftwareComponent child, PublishingExtension publishing, Project project) {
if (child instanceof PublishableComponent) {
publishing.getPublications().create(child.getName(), MavenPublication.class, publication -> {
MavenPublicationInternal publicationInternal = (MavenPublicationInternal) publication;
fillInCoordinates(project, publicationInternal, (PublishableComponent) child);
publicationInternal.from(child);
publicationInternal.publishWithOriginalFileName();
});
}
}
Aggregations