api / org.gradle.language.scala.tasks / BaseScalaCompileOptions

BaseScalaCompileOptions

@Incubating open class BaseScalaCompileOptions : AbstractOptions

Options for Scala platform compilation.

Constructors

<init>

BaseScalaCompileOptions()

Options for Scala platform compilation.

Functions

getAdditionalParameters

open fun getAdditionalParameters(): MutableList<String>

Additional parameters passed to the compiler. Each parameter must start with '-'.

getDebugLevel

open fun getDebugLevel(): String

Generate debugging information. Legal values: none, source, line, vars, notailcalls

getEncoding

open fun getEncoding(): String

Encoding of source files.

getForkOptions

open fun getForkOptions(): ScalaForkOptions

Options for running the Scala compiler in a separate process.

getIncrementalOptions

open fun getIncrementalOptions(): IncrementalCompileOptions

getLoggingLevel

open fun getLoggingLevel(): String

Specifies the amount of logging. Legal values: none, verbose, debug

getLoggingPhases

open fun getLoggingPhases(): MutableList<String>

Phases of the compiler to log. Legal values: namer, typer, pickler, uncurry, tailcalls, transmatch, explicitouter, erasure, lambdalift, flatten, constructors, mixin, icode, jvm, terminal.

isDeprecation

open fun isDeprecation(): Boolean

Generate deprecation information.

isFailOnError

open fun isFailOnError(): Boolean

Fail the build on compilation errors.

isForce

open fun isForce(): Boolean

Whether to force the compilation of all files. Legal values: - false (only compile modified files) - true (always recompile all files)

isListFiles

open fun isListFiles(): Boolean

List files to be compiled.

isOptimize

open fun isOptimize(): Boolean

Run optimizations.

isUnchecked

open fun isUnchecked(): Boolean

Generate unchecked information.

setAdditionalParameters

open fun setAdditionalParameters(additionalParameters: MutableList<String>): Unit

setDebugLevel

open fun setDebugLevel(debugLevel: String): Unit

setDeprecation

open fun setDeprecation(deprecation: Boolean): Unit

setEncoding

open fun setEncoding(encoding: String): Unit

setFailOnError

open fun setFailOnError(failOnError: Boolean): Unit

setForce

open fun setForce(force: Boolean): Unit

setForkOptions

open fun setForkOptions(forkOptions: ScalaForkOptions): Unit

setIncrementalOptions

open fun setIncrementalOptions(incrementalOptions: IncrementalCompileOptions): Unit

setListFiles

open fun setListFiles(listFiles: Boolean): Unit

setLoggingLevel

open fun setLoggingLevel(loggingLevel: String): Unit

setLoggingPhases

open fun setLoggingPhases(loggingPhases: MutableList<String>): Unit

setOptimize

open fun setOptimize(optimize: Boolean): Unit

setUnchecked

open fun setUnchecked(unchecked: Boolean): Unit

Inherited Functions

define

open fun define(args: MutableMap<String, Any>): Unit

optionMap

open fun optionMap(): MutableMap<String, Any>

Inheritors

ScalaCompileOptions

open class ScalaCompileOptions : BaseScalaCompileOptions

Options for Scala Compilation.