use of org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectPublication in project gradle by gradle.
the class PublicationsBuilder method publications.
private List<DefaultGradlePublication> publications(DefaultProjectIdentifier projectIdentifier) {
List<DefaultGradlePublication> gradlePublications = Lists.newArrayList();
Set<ProjectPublication> projectPublications = publicationRegistry.getPublications(projectIdentifier.getProjectPath());
for (ProjectPublication projectPublication : projectPublications) {
gradlePublications.add(new DefaultGradlePublication().setId(new DefaultGradleModuleVersion(projectPublication.getId())).setProjectIdentifier(projectIdentifier));
}
return gradlePublications;
}
Aggregations