use of org.gradle.api.internal.tasks.compile.JavaCompileSpec in project gradle by gradle.
the class JavaCompile method compile.
@TaskAction
protected void compile(IncrementalTaskInputs inputs) {
if (!compileOptions.isIncremental()) {
compile();
return;
}
DefaultJavaCompileSpec spec = createSpec();
CompileCaches compileCaches = createCompileCaches();
IncrementalCompilerFactory factory = new IncrementalCompilerFactory(getFileOperations(), getCachingFileHasher(), getPath(), createCompiler(spec), source, compileCaches, (IncrementalTaskInputsInternal) inputs, getEffectiveAnnotationProcessorPath());
Compiler<JavaCompileSpec> compiler = factory.createCompiler();
performCompilation(spec, compiler);
}
Aggregations