Search in sources :

Example 1 with DefaultScalaJavaJointCompileSpec

use of org.gradle.api.internal.tasks.scala.DefaultScalaJavaJointCompileSpec in project gradle by gradle.

the class AbstractScalaCompile method createSpec.

protected ScalaJavaJointCompileSpec createSpec() {
    DefaultScalaJavaJointCompileSpec spec = new DefaultScalaJavaJointCompileSpecFactory(compileOptions).create();
    spec.setSource(getSource());
    spec.setDestinationDir(getDestinationDir());
    spec.setWorkingDir(getProject().getProjectDir());
    spec.setTempDir(getTemporaryDir());
    spec.setCompileClasspath(ImmutableList.copyOf(getClasspath()));
    spec.setSourceCompatibility(getSourceCompatibility());
    spec.setTargetCompatibility(getTargetCompatibility());
    spec.setCompileOptions(getOptions());
    spec.setScalaCompileOptions(scalaCompileOptions);
    spec.setAnnotationProcessorPath(ImmutableList.copyOf(getEffectiveAnnotationProcessorPath()));
    return spec;
}
Also used : DefaultScalaJavaJointCompileSpec(org.gradle.api.internal.tasks.scala.DefaultScalaJavaJointCompileSpec) DefaultScalaJavaJointCompileSpecFactory(org.gradle.api.internal.tasks.scala.DefaultScalaJavaJointCompileSpecFactory)

Aggregations

DefaultScalaJavaJointCompileSpec (org.gradle.api.internal.tasks.scala.DefaultScalaJavaJointCompileSpec)1 DefaultScalaJavaJointCompileSpecFactory (org.gradle.api.internal.tasks.scala.DefaultScalaJavaJointCompileSpecFactory)1