Package org.gradle.language.scala.tasks
Class BaseScalaCompileOptions
java.lang.Object
org.gradle.api.tasks.compile.AbstractOptions
org.gradle.language.scala.tasks.BaseScalaCompileOptions
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ScalaCompileOptions
Options for Scala platform compilation.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdditional parameters passed to the compiler.Generate debugging information.Encoding of source files.Options for running the Scala compiler in a separate process.Specifies the amount of logging.Phases of the compiler to log.boolean
Generate deprecation information.boolean
Fail the build on compilation errors.boolean
isForce()
Whether to force the compilation of all files.boolean
List files to be compiled.boolean
Run optimizations.boolean
Generate unchecked information.void
setAdditionalParameters
(List<String> additionalParameters) void
setDebugLevel
(String debugLevel) void
setDeprecation
(boolean deprecation) void
setEncoding
(String encoding) void
setFailOnError
(boolean failOnError) void
setForce
(boolean force) void
setForkOptions
(ScalaForkOptions forkOptions) void
setIncrementalOptions
(IncrementalCompileOptions incrementalOptions) void
setListFiles
(boolean listFiles) void
setLoggingLevel
(String loggingLevel) void
setLoggingPhases
(List<String> loggingPhases) void
setOptimize
(boolean optimize) void
setUnchecked
(boolean unchecked) Methods inherited from class org.gradle.api.tasks.compile.AbstractOptions
define, excludeFromAntProperties, getAntPropertyName, getAntPropertyValue, optionMap
-
Constructor Details
-
BaseScalaCompileOptions
public BaseScalaCompileOptions()
-
-
Method Details
-
isFailOnError
Fail the build on compilation errors. -
setFailOnError
public void setFailOnError(boolean failOnError) -
isDeprecation
Generate deprecation information. -
setDeprecation
public void setDeprecation(boolean deprecation) -
isUnchecked
Generate unchecked information. -
setUnchecked
public void setUnchecked(boolean unchecked) -
getDebugLevel
Generate debugging information. Legal values: none, source, line, vars, notailcalls -
setDebugLevel
-
isOptimize
Run optimizations. -
setOptimize
public void setOptimize(boolean optimize) -
getEncoding
Encoding of source files. -
setEncoding
-
isForce
Whether to force the compilation of all files. Legal values: - false (only compile modified files) - true (always recompile all files) -
setForce
public void setForce(boolean force) -
getAdditionalParameters
Additional parameters passed to the compiler. Each parameter must start with '-'. -
setAdditionalParameters
-
isListFiles
List files to be compiled. -
setListFiles
public void setListFiles(boolean listFiles) -
getLoggingLevel
Specifies the amount of logging. Legal values: none, verbose, debug -
setLoggingLevel
-
getLoggingPhases
Phases of the compiler to log. Legal values: namer, typer, pickler, uncurry, tailcalls, transmatch, explicitouter, erasure, lambdalift, flatten, constructors, mixin, icode, jvm, terminal. -
setLoggingPhases
-
getForkOptions
Options for running the Scala compiler in a separate process. -
setForkOptions
-
getIncrementalOptions
-
setIncrementalOptions
-