use of org.gradle.api.internal.tasks.compile.CleaningGroovyCompiler in project gradle by gradle.
the class GroovyCompile method getCompiler.
private Compiler<GroovyJavaJointCompileSpec> getCompiler(GroovyJavaJointCompileSpec spec) {
if (compiler == null) {
ProjectInternal projectInternal = (ProjectInternal) getProject();
WorkerDaemonFactory workerDaemonFactory = getServices().get(WorkerDaemonFactory.class);
IsolatedClassloaderWorkerFactory inProcessWorkerFactory = getServices().get(IsolatedClassloaderWorkerFactory.class);
FileResolver fileResolver = getServices().get(FileResolver.class);
GroovyCompilerFactory groovyCompilerFactory = new GroovyCompilerFactory(projectInternal, workerDaemonFactory, inProcessWorkerFactory, fileResolver);
Compiler<GroovyJavaJointCompileSpec> delegatingCompiler = groovyCompilerFactory.newCompiler(spec);
compiler = new CleaningGroovyCompiler(delegatingCompiler, getOutputs());
}
return compiler;
}
Aggregations