Search in sources :

Example 1 with DefaultGradlePublication

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;
}
Also used : DefaultGradlePublication(org.gradle.tooling.internal.gradle.DefaultGradlePublication) DefaultGradleModuleVersion(org.gradle.tooling.internal.gradle.DefaultGradleModuleVersion) ProjectPublication(org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectPublication)

Aggregations

ProjectPublication (org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectPublication)1 DefaultGradleModuleVersion (org.gradle.tooling.internal.gradle.DefaultGradleModuleVersion)1 DefaultGradlePublication (org.gradle.tooling.internal.gradle.DefaultGradlePublication)1