ProjectClassPaths classPaths = fetchAllDependencies(module, cache);
File buildOutputDir = getDefaultBuildDir(projectDir);
File classesDir = new File(buildOutputDir, "classes");
File resourcesDir = new File(buildOutputDir, "resources");
JavaOutputDirs mainOutputs = new JavaOutputDirs(
new File(classesDir, JavaSourceSet.NAME_MAIN),
new File(resourcesDir, JavaSourceSet.NAME_MAIN),
Collections.<File>emptyList());
JavaSourceSet.Builder main
= new JavaSourceSet.Builder(JavaSourceSet.NAME_MAIN, mainOutputs);
main.setClasspaths(classPaths.main);
JavaOutputDirs testOutputs = new JavaOutputDirs(
new File(classesDir, JavaSourceSet.NAME_TEST),
new File(resourcesDir, JavaSourceSet.NAME_TEST),
Collections.<File>emptyList());
JavaSourceSet.Builder test