# Class BaseScalaCompileOptions

java.lang.Object
org.gradle.language.scala.tasks.BaseScalaCompileOptions

All Implemented Interfaces:
  `Serializable`

Direct Known Subclasses:
  `ScalaCompileOptions`

public abstract class BaseScalaCompileOptions extends Object implements Serializable
Options for Scala platform compilation.

Since:
  2.3
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BaseScalaCompileOptions()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `forkOptions(Action<? super ScalaForkOptions> action)`
  Configure options for running the Scala compiler in a separate process.
  `List<String>`
  `getAdditionalParameters()`
  Additional parameters passed to the compiler.
  `@Nullable String`
  `getDebugLevel()`
  Generate debugging information.
  `@Nullable String`
  `getEncoding()`
  Encoding of source files.
  `ScalaForkOptions`
  `getForkOptions()`
  Options for running the Scala compiler in a separate process.
  `IncrementalCompileOptions`
  `getIncrementalOptions()`
  Options for incremental compilation of Scala code.
  `abstract Property<KeepAliveMode>`
  `getKeepAliveMode()`
  Keeps Scala compiler daemon alive across builds for faster build times
  `String`
  `getLoggingLevel()`
  Specifies the amount of logging.
  `List<String>`
  `getLoggingPhases()`
  Phases of the compiler to log.
  `protected abstract ObjectFactory`
  `getObjectFactory()`
  `void`
  `incrementalOptions(Action<? super IncrementalCompileOptions> action)`
  Configure options for incremental compilation of Scala code.
  `boolean`
  `isDeprecation()`
  Generate deprecation information.
  `boolean`
  `isFailOnError()`
  Fail the build on compilation errors.
  `boolean`
  `isForce()`
  Whether to force the compilation of all files.
  `boolean`
  `isListFiles()`
  List files to be compiled.
  `boolean`
  `isOptimize()`
  Run optimizations.
  `boolean`
  `isUnchecked()`
  Generate unchecked information.
  `void`
  `setAdditionalParameters(List<String> additionalParameters)`
  Sets the additional parameters.
  `void`
  `setDebugLevel(@Nullable String debugLevel)`
  Sets the debug level.
  `void`
  `setDeprecation(boolean deprecation)`
  Sets the deprecation.
  `void`
  `setEncoding(@Nullable String encoding)`
  Sets the encoding.
  `void`
  `setFailOnError(boolean failOnError)`
  Sets the fail on error.
  `void`
  `setForce(boolean force)`
  Sets the force.
  `void`
  `setListFiles(boolean listFiles)`
  Sets the list files.
  `void`
  `setLoggingLevel(String loggingLevel)`
  Sets the logging level.
  `void`
  `setLoggingPhases(List<String> loggingPhases)`
  Sets the logging phases.
  `void`
  `setOptimize(boolean optimize)`
  Sets the optimize.
  `void`
  `setUnchecked(boolean unchecked)`
  Sets the unchecked.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### BaseScalaCompileOptions

    public BaseScalaCompileOptions()

- ## Method Details

  - ### getObjectFactory

    @Inject protected abstract ObjectFactory getObjectFactory()

  - ### isFailOnError

    @Input public boolean isFailOnError()
    Fail the build on compilation errors.
    Since:
      2.3

  - ### setFailOnError

    public void setFailOnError(boolean failOnError)
    Sets the fail on error.
    Since:
      2.3

  - ### isDeprecation

    @Console public boolean isDeprecation()
    Generate deprecation information.
    Since:
      2.3

  - ### setDeprecation

    public void setDeprecation(boolean deprecation)
    Sets the deprecation.
    Since:
      2.3

  - ### isUnchecked

    @Console public boolean isUnchecked()
    Generate unchecked information.
    Since:
      2.3

  - ### setUnchecked

    public void setUnchecked(boolean unchecked)
    Sets the unchecked.
    Since:
      2.3

  - ### getDebugLevel

    @Optional @Input public @Nullable String getDebugLevel()
    Generate debugging information. Legal values: none, source, line, vars, notailcalls
    Since:
      2.3

  - ### setDebugLevel

    public void setDebugLevel(@Nullable String debugLevel)
    Sets the debug level.
    Since:
      2.3

  - ### isOptimize

    @Input public boolean isOptimize()
    Run optimizations.
    Since:
      2.3

  - ### setOptimize

    public void setOptimize(boolean optimize)
    Sets the optimize.
    Since:
      2.3

  - ### getEncoding

    @Optional @Input public @Nullable String getEncoding()
    Encoding of source files.
    Since:
      2.3

  - ### setEncoding

    public void setEncoding(@Nullable String encoding)
    Sets the encoding.
    Since:
      2.3

  - ### isForce

    @Input public boolean isForce()
    Whether to force the compilation of all files. Legal values: - false (only compile modified files) - true (always recompile all files)
    Since:
      2.12

  - ### setForce

    public void setForce(boolean force)
    Sets the force.
    Since:
      2.12

  - ### getAdditionalParameters

    @Optional @Input public List<String> getAdditionalParameters()
    Additional parameters passed to the compiler. Each parameter must start with '-'.
    Returns:
      The list of additional parameters.
    Since:
      2.3

  - ### setAdditionalParameters

    public void setAdditionalParameters(List<String> additionalParameters)
    Sets the additional parameters.

    Setting this property will clear any previously set additional parameters.

    Since:
      2.3

  - ### isListFiles

    @Console public boolean isListFiles()
    List files to be compiled.
    Since:
      2.3

  - ### setListFiles

    public void setListFiles(boolean listFiles)
    Sets the list files.
    Since:
      2.3

  - ### getLoggingLevel

    @Console public String getLoggingLevel()
    Specifies the amount of logging. Legal values: none, verbose, debug
    Since:
      2.3

  - ### setLoggingLevel

    public void setLoggingLevel(String loggingLevel)
    Sets the logging level.
    Since:
      2.3

  - ### getLoggingPhases

    @Console public List<String> getLoggingPhases()
    Phases of the compiler to log. Legal values: namer, typer, pickler, uncurry, tailcalls, transmatch, explicitouter, erasure, lambdalift, flatten, constructors, mixin, icode, jvm, terminal.
    Since:
      2.3

  - ### setLoggingPhases

    public void setLoggingPhases(List<String> loggingPhases)
    Sets the logging phases.
    Since:
      2.3

  - ### getForkOptions

    public ScalaForkOptions getForkOptions()
    Options for running the Scala compiler in a separate process.
    Since:
      2.3

  - ### forkOptions

    public void forkOptions(Action<? super ScalaForkOptions> action)
    Configure options for running the Scala compiler in a separate process.
    Since:
      8.11

  - ### getIncrementalOptions

    public IncrementalCompileOptions getIncrementalOptions()
    Options for incremental compilation of Scala code.
    Since:
      2.3

  - ### incrementalOptions

    public void incrementalOptions(Action<? super IncrementalCompileOptions> action)
    Configure options for incremental compilation of Scala code.
    Since:
      8.11

  - ### getKeepAliveMode

    @Incubating @Input public abstract Property<KeepAliveMode> getKeepAliveMode()
    Keeps Scala compiler daemon alive across builds for faster build times
    Since:
      7.6