use of org.gradle.tooling.internal.gradle.DefaultGradlePublication 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