use of org.gradle.api.initialization.IncludedBuild in project gradle by gradle.
the class CompositeBuildTaskDelegate method executeTasksInOtherBuild.
@TaskAction
public void executeTasksInOtherBuild() {
IncludedBuilds includedBuilds = getServices().get(IncludedBuilds.class);
IncludedBuildExecuter builder = getServices().get(IncludedBuildExecuter.class);
IncludedBuild includedBuild = includedBuilds.getBuild(build);
BuildIdentifier buildId = new DefaultBuildIdentifier(includedBuild.getName());
// sourceBuild is currently always root build in a composite
builder.execute(new DefaultBuildIdentifier(":", true), buildId, tasks);
}
use of org.gradle.api.initialization.IncludedBuild in project gradle by gradle.
the class IdeaModelBuilder method applyIdeaPlugin.
private void applyIdeaPlugin(Project root) {
Set<Project> allProjects = root.getAllprojects();
for (Project p : allProjects) {
p.getPluginManager().apply(IdeaPlugin.class);
}
for (IncludedBuild includedBuild : root.getGradle().getIncludedBuilds()) {
IncludedBuildInternal includedBuildInternal = (IncludedBuildInternal) includedBuild;
applyIdeaPlugin(includedBuildInternal.getConfiguredBuild().getRootProject());
}
}
Aggregations