return sourceSet.getClassesDir();
}
});
String compileTaskName = sourceSet.getCompileJavaTaskName();
Compile compileJava = project.getTasks().add(compileTaskName, Compile.class);
configureForSourceSet(sourceSet, compileJava);
Task classes = project.getTasks().add(sourceSet.getClassesTaskName());
classes.dependsOn(sourceSet.getProcessResourcesTaskName(), compileTaskName);
classes.setDescription(String.format("Assembles the %s classes.", sourceSet.getName()));