Search in sources :

Example 1 with JavaCompileSpec

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);
}
Also used : DefaultJavaCompileSpec(org.gradle.api.internal.tasks.compile.DefaultJavaCompileSpec) CompileCaches(org.gradle.api.internal.tasks.compile.incremental.cache.CompileCaches) GeneralCompileCaches(org.gradle.api.internal.tasks.compile.incremental.cache.GeneralCompileCaches) JavaCompileSpec(org.gradle.api.internal.tasks.compile.JavaCompileSpec) DefaultJavaCompileSpec(org.gradle.api.internal.tasks.compile.DefaultJavaCompileSpec) IncrementalCompilerFactory(org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory) TaskAction(org.gradle.api.tasks.TaskAction)

Aggregations

DefaultJavaCompileSpec (org.gradle.api.internal.tasks.compile.DefaultJavaCompileSpec)1 JavaCompileSpec (org.gradle.api.internal.tasks.compile.JavaCompileSpec)1 IncrementalCompilerFactory (org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory)1 CompileCaches (org.gradle.api.internal.tasks.compile.incremental.cache.CompileCaches)1 GeneralCompileCaches (org.gradle.api.internal.tasks.compile.incremental.cache.GeneralCompileCaches)1 TaskAction (org.gradle.api.tasks.TaskAction)1