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
Constructors -
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.booleanGenerate deprecation information.booleanFail the build on compilation errors.booleanisForce()Whether to force the compilation of all files.booleanList files to be compiled.booleanRun optimizations.booleanGenerate unchecked information.voidsetAdditionalParameters(List<String> additionalParameters) voidsetDebugLevel(String debugLevel) voidsetDeprecation(boolean deprecation) voidsetEncoding(String encoding) voidsetFailOnError(boolean failOnError) voidsetForce(boolean force) voidsetForkOptions(ScalaForkOptions forkOptions) voidsetIncrementalOptions(IncrementalCompileOptions incrementalOptions) voidsetListFiles(boolean listFiles) voidsetLoggingLevel(String loggingLevel) voidsetLoggingPhases(List<String> loggingPhases) voidsetOptimize(boolean optimize) voidsetUnchecked(boolean unchecked) Methods inherited from class 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
-
setDebugLevel
-
isOptimize
Run optimizations. -
setOptimize
public void setOptimize(boolean optimize) -
getEncoding
-
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
-
setAdditionalParameters
-
isListFiles
List files to be compiled. -
setListFiles
public void setListFiles(boolean listFiles) -
getLoggingLevel
-
setLoggingLevel
-
getLoggingPhases
-
setLoggingPhases
-
getForkOptions
Options for running the Scala compiler in a separate process. -
setForkOptions
-
getIncrementalOptions
-
setIncrementalOptions
-