Class ScalaCompile

    • Constructor Detail

      • ScalaCompile

        @Inject
        public ScalaCompile()
    • Method Detail

      • getScalaClasspath

        @Classpath
        public FileCollection getScalaClasspath()
        Returns the classpath to use to load the Scala compiler.
      • getSource

        @PathSensitive(NAME_ONLY)
        public FileTree getSource()
        Returns the source for this task, after the include and exclude patterns have been applied. Ignores source files which do not exist.
        Overrides:
        getSource in class SourceTask
        Returns:
        The source.
      • setScalaClasspath

        public void setScalaClasspath​(FileCollection scalaClasspath)
      • getZincClasspath

        @Classpath
        public FileCollection getZincClasspath()
        Returns the classpath to use to load the Zinc incremental compiler. This compiler in turn loads the Scala compiler.
      • setZincClasspath

        public void setZincClasspath​(FileCollection zincClasspath)
      • getJvmVersion

        @Incubating
        @Input
        protected String getJvmVersion()
        The Java major version of the JVM the Scala compiler is running on.
        Since:
        4.1
      • setCompiler

        public void setCompiler​(org.gradle.language.base.internal.compile.Compiler<org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec> compiler)
        For testing only.
      • getCompiler

        protected org.gradle.language.base.internal.compile.Compiler<org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec> getCompiler​(org.gradle.api.internal.tasks.scala.ScalaJavaJointCompileSpec spec)
        Specified by:
        getCompiler in class AbstractScalaCompile
      • assertScalaClasspathIsNonEmpty

        protected void assertScalaClasspathIsNonEmpty()