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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidforkOptions(Action<? super ScalaForkOptions> action) Configure options for running the Scala compiler in a separate process.Additional parameters passed to the compiler.Generate debugging information.Encoding of source files.Options for running the Scala compiler in a separate process.Options for incremental compilation of Scala code.Keeps Scala compiler daemon alive across builds for faster build timesSpecifies the amount of logging.Phases of the compiler to log.protected ObjectFactoryvoidincrementalOptions(Action<? super IncrementalCompileOptions> action) Configure options for incremental compilation of Scala code.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) Sets the additional parameters.voidsetDebugLevel(String debugLevel) voidsetDeprecation(boolean deprecation) voidsetEncoding(String encoding) voidsetFailOnError(boolean failOnError) voidsetForce(boolean force) voidsetForkOptions(ScalaForkOptions forkOptions) Deprecated.Setting a new instance of this property is unnecessary.voidsetIncrementalOptions(IncrementalCompileOptions incrementalOptions) Deprecated.Setting a new instance of this property is unnecessary.voidsetListFiles(boolean listFiles) voidsetLoggingLevel(String loggingLevel) voidsetLoggingPhases(List<String> loggingPhases) voidsetOptimize(boolean optimize) voidsetUnchecked(boolean unchecked) Methods inherited from class org.gradle.api.tasks.compile.AbstractOptionsdefine
- 
Constructor Details- 
BaseScalaCompileOptionspublic BaseScalaCompileOptions()
 
- 
- 
Method Details- 
getObjectFactory
- 
isFailOnErrorFail the build on compilation errors.
- 
setFailOnErrorpublic void setFailOnError(boolean failOnError) 
- 
isDeprecationGenerate deprecation information.
- 
setDeprecationpublic void setDeprecation(boolean deprecation) 
- 
isUncheckedGenerate unchecked information.
- 
setUncheckedpublic void setUnchecked(boolean unchecked) 
- 
getDebugLevelGenerate debugging information. Legal values: none, source, line, vars, notailcalls
- 
setDebugLevel
- 
isOptimizeRun optimizations.
- 
setOptimizepublic void setOptimize(boolean optimize) 
- 
getEncodingEncoding of source files.
- 
setEncoding
- 
isForceWhether to force the compilation of all files. Legal values: - false (only compile modified files) - true (always recompile all files)
- 
setForcepublic void setForce(boolean force) 
- 
getAdditionalParametersAdditional parameters passed to the compiler. Each parameter must start with '-'.- Returns:
- The list of additional parameters.
 
- 
setAdditionalParametersSets the additional parameters.Setting this property will clear any previously set additional parameters. 
- 
isListFilesList files to be compiled.
- 
setListFilespublic void setListFiles(boolean listFiles) 
- 
getLoggingLevelSpecifies the amount of logging. Legal values: none, verbose, debug
- 
setLoggingLevel
- 
getLoggingPhasesPhases of the compiler to log. Legal values: namer, typer, pickler, uncurry, tailcalls, transmatch, explicitouter, erasure, lambdalift, flatten, constructors, mixin, icode, jvm, terminal.
- 
setLoggingPhases
- 
getForkOptionsOptions for running the Scala compiler in a separate process.
- 
setForkOptionsDeprecated.Setting a new instance of this property is unnecessary. This method will be removed in Gradle 9.0. UseforkOptions(Action)instead.Options for running the Scala compiler in a separate process.
- 
forkOptionsConfigure options for running the Scala compiler in a separate process.- Since:
- 8.11
 
- 
getIncrementalOptionsOptions for incremental compilation of Scala code.
- 
setIncrementalOptionsDeprecated.Setting a new instance of this property is unnecessary. This method will be removed in Gradle 9.0. UseincrementalOptions(Action)instead.Options for incremental compilation of Scala code.
- 
incrementalOptionsConfigure options for incremental compilation of Scala code.- Since:
- 8.11
 
- 
getKeepAliveModeKeeps Scala compiler daemon alive across builds for faster build times- Since:
- 7.6
 
 
-