Search in sources :

Example 1 with JavaForkOptionsFactory

use of org.gradle.process.internal.JavaForkOptionsFactory in project gradle by gradle.

the class ScalaCompile method getCompiler.

@Override
protected org.gradle.language.base.internal.compile.Compiler<ScalaJavaJointCompileSpec> getCompiler(ScalaJavaJointCompileSpec spec) {
    assertScalaClasspathIsNonEmpty();
    if (compiler == null) {
        WorkerDaemonFactory workerDaemonFactory = getServices().get(WorkerDaemonFactory.class);
        JavaForkOptionsFactory forkOptionsFactory = getServices().get(JavaForkOptionsFactory.class);
        ClassPathRegistry classPathRegistry = getServices().get(ClassPathRegistry.class);
        ClassLoaderRegistry classLoaderRegistry = getServices().get(ClassLoaderRegistry.class);
        ActionExecutionSpecFactory actionExecutionSpecFactory = getServices().get(ActionExecutionSpecFactory.class);
        ScalaCompilerFactory scalaCompilerFactory = new ScalaCompilerFactory(getServices().get(WorkerDirectoryProvider.class).getWorkingDirectory(), workerDaemonFactory, getScalaClasspath(), getZincClasspath(), forkOptionsFactory, classPathRegistry, classLoaderRegistry, actionExecutionSpecFactory, getServices().get(ClasspathHasher.class));
        compiler = scalaCompilerFactory.newCompiler(spec);
    }
    return compiler;
}
Also used : ActionExecutionSpecFactory(org.gradle.workers.internal.ActionExecutionSpecFactory) JavaForkOptionsFactory(org.gradle.process.internal.JavaForkOptionsFactory) ClassLoaderRegistry(org.gradle.initialization.ClassLoaderRegistry) ScalaCompilerFactory(org.gradle.api.internal.tasks.scala.ScalaCompilerFactory) ClasspathHasher(org.gradle.internal.classloader.ClasspathHasher) WorkerDaemonFactory(org.gradle.workers.internal.WorkerDaemonFactory) ClassPathRegistry(org.gradle.api.internal.ClassPathRegistry)

Aggregations

ClassPathRegistry (org.gradle.api.internal.ClassPathRegistry)1 ScalaCompilerFactory (org.gradle.api.internal.tasks.scala.ScalaCompilerFactory)1 ClassLoaderRegistry (org.gradle.initialization.ClassLoaderRegistry)1 ClasspathHasher (org.gradle.internal.classloader.ClasspathHasher)1 JavaForkOptionsFactory (org.gradle.process.internal.JavaForkOptionsFactory)1 ActionExecutionSpecFactory (org.gradle.workers.internal.ActionExecutionSpecFactory)1 WorkerDaemonFactory (org.gradle.workers.internal.WorkerDaemonFactory)1