public void configureCompileTask(AbstractCompile compile, final JavaSourceSet sourceSet, final ClassDirectoryBinarySpec binary) {
compile.setDescription(String.format("Compiles %s.", sourceSet));
compile.setSource(sourceSet.getSource());
compile.dependsOn(sourceSet);
ConventionMapping conventionMapping = compile.getConventionMapping();
conventionMapping.map("classpath", new Callable<Object>() {
public Object call() throws Exception {
return sourceSet.getCompileClasspath().getFiles();
}
});
conventionMapping.map("destinationDir", new Callable<Object>() {