use of org.gradle.composite.internal.IncludedBuildInternal in project gradle by gradle.
the class GradleBuildBuilder method convert.
private DefaultGradleBuild convert(Gradle gradle) {
DefaultGradleBuild model = new DefaultGradleBuild();
Map<Project, BasicGradleProject> convertedProjects = new LinkedHashMap<Project, BasicGradleProject>();
Project rootProject = gradle.getRootProject();
BasicGradleProject convertedRootProject = convert(rootProject, convertedProjects);
model.setRootProject(convertedRootProject);
for (Project project : rootProject.getAllprojects()) {
model.addProject(convertedProjects.get(project));
}
for (IncludedBuild includedBuild : gradle.getIncludedBuilds()) {
Gradle includedGradle = ((IncludedBuildInternal) includedBuild).getConfiguredBuild();
DefaultGradleBuild convertedIncludedBuild = convert(includedGradle);
model.addIncludedBuild(convertedIncludedBuild);
}
return model;
}
use of org.gradle.composite.internal.IncludedBuildInternal in project gradle by gradle.
the class ClientProvidedBuildActionRunner method forceFullConfiguration.
private void forceFullConfiguration(GradleInternal gradle) {
try {
gradle.getServices().get(ProjectConfigurer.class).configureHierarchyFully(gradle.getRootProject());
for (IncludedBuild includedBuild : gradle.getIncludedBuilds()) {
GradleInternal build = ((IncludedBuildInternal) includedBuild).getConfiguredBuild();
forceFullConfiguration(build);
}
} catch (BuildCancelledException e) {
throw new InternalBuildCancelledException(e);
} catch (RuntimeException e) {
throw new BuildExceptionVersion1(e);
}
}
Aggregations