Package: org.gradle.api.tasks.scala

## [Java] Class ScalaCompile

- org.gradle.api.tasks.scala.ScalaCompile

- Compiles Scala source files, and optionally, Java source files.

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `protected void` | `compile()`
    `CompileOptions` | `getOptions()` Returns the Java compilation options.
    `FileCollection` | `getScalaClasspath()` Returns the classpath to use to load the Scala compiler.
    `ScalaCompileOptions` | `getScalaCompileOptions()` Returns the Scala compilation options.
    `FileCollection` | `getZincClasspath()` Returns the classpath to use to load the Zinc incremental compiler.
    `void` | `setScalaClasspath(FileCollection scalaClasspath)`
    `void` | `setZincClasspath(FileCollection zincClasspath)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class AbstractCompile` | `compile, getClasspath, getDestinationDir, getSourceCompatibility, getTargetCompatibility, setClasspath, setDestinationDir, setSourceCompatibility, setTargetCompatibility`

- - ### Method Detail

    - #### @TaskAction protected void compile()

    - #### @Nested public CompileOptions getOptions()

      Returns the Java compilation options.

    - #### @InputFiles public FileCollection getScalaClasspath()

      Returns the classpath to use to load the Scala compiler.

    - #### @Nested public ScalaCompileOptions getScalaCompileOptions()

      Returns the Scala compilation options.

    - #### @InputFiles public FileCollection getZincClasspath()

      Returns the classpath to use to load the Zinc incremental compiler. This compiler in turn loads the Scala compiler.

    - #### public void setScalaClasspath(FileCollection scalaClasspath)

    - #### public void setZincClasspath(FileCollection zincClasspath)