public void doTask(ProjectConnection connection) throws Exception {
GradleMultiProjectDef projectDef = fetchProjectDef(connection);
testBasicInfoForProject(relativeProjectName, projectDef);
GradleProjectTree mainProject = projectDef.getMainProject();
GenericProjectProperties genericProperties = mainProject.getGenericProperties();
assertEquals("Build script for the project must be build.gradle.",
new File(genericProperties.getProjectDir(), "build.gradle"),
genericProperties.getBuildScript());
Collection<GradleTaskID> tasks = mainProject.getTasks();
Set<String> remainingTasks = mustHaveTasks(relativeProjectName, tasks, expectedTasks);
for (String task: unexpectedTasks) {