use of org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectLocalComponentProvider in project gradle by gradle.
the class IdeaPlugin method registerImlArtifacts.
private void registerImlArtifacts() {
Set<Project> projectsWithIml = Sets.filter(project.getRootProject().getAllprojects(), new Predicate<Project>() {
@Override
public boolean apply(Project project) {
return project.getPlugins().hasPlugin(IdeaPlugin.class);
}
});
for (Project project : projectsWithIml) {
ProjectLocalComponentProvider projectComponentProvider = ((ProjectInternal) project).getServices().get(ProjectLocalComponentProvider.class);
ProjectComponentIdentifier projectId = newProjectId(project);
projectComponentProvider.registerAdditionalArtifact(projectId, createImlArtifact(projectId, project));
}
}
use of org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectLocalComponentProvider in project gradle by gradle.
the class EclipsePlugin method registerEclipseArtifacts.
private static void registerEclipseArtifacts(Project project) {
ProjectLocalComponentProvider projectComponentProvider = ((ProjectInternal) project).getServices().get(ProjectLocalComponentProvider.class);
ProjectComponentIdentifier projectId = newProjectId(project);
String projectName = project.getExtensions().getByType(EclipseModel.class).getProject().getName();
projectComponentProvider.registerAdditionalArtifact(projectId, createArtifact("project", projectId, projectName, project));
projectComponentProvider.registerAdditionalArtifact(projectId, createArtifact("classpath", projectId, projectName, project));
}
Aggregations