return PlatformJavaCompile.class;
}
public void configureTask(Task task, BinarySpec binarySpec, LanguageSourceSet sourceSet) {
PlatformJavaCompile compile = (PlatformJavaCompile) task;
JavaSourceSet javaSourceSet = (JavaSourceSet) sourceSet;
JvmBinarySpec binary = (JvmBinarySpec) binarySpec;
compile.setDescription(String.format("Compiles %s.", javaSourceSet));
compile.setDestinationDir(binary.getClassesDir());
compile.setToolChain(binary.getToolChain());
compile.setPlatform(binary.getTargetPlatform());
compile.setSource(javaSourceSet.getSource());
compile.setClasspath(javaSourceSet.getCompileClasspath().getFiles());
compile.setTargetCompatibility(binary.getTargetPlatform().getTargetCompatibility().toString());
compile.setSourceCompatibility(binary.getTargetPlatform().getTargetCompatibility().toString());
compile.setDependencyCacheDir(new File(compile.getProject().getBuildDir(), "jvm-dep-cache"));
compile.dependsOn(javaSourceSet);