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.
See Also:
  • Constructor Details

    • BaseScalaCompileOptions

      @Inject public BaseScalaCompileOptions()
  • Method Details

    • getObjectFactory

      @Inject protected abstract ObjectFactory getObjectFactory()
    • getFailOnError

      @Input public abstract Property<Boolean> getFailOnError()
      Fail the build on compilation errors.
    • getIsFailOnError

      @Internal public Property<Boolean> getIsFailOnError()
    • getDeprecation

      @Console public abstract Property<Boolean> getDeprecation()
      Generate deprecation information.
    • getIsDeprecation

      @Internal public Property<Boolean> getIsDeprecation()
    • getUnchecked

      @Console public abstract Property<Boolean> getUnchecked()
      Generate unchecked information.
    • getIsUnchecked

      @Internal public Property<Boolean> getIsUnchecked()
    • getDebugLevel

      @Optional @Input public abstract Property<String> getDebugLevel()
      Generate debugging information. Legal values: none, source, line, vars, notailcalls
    • getOptimize

      @Input public abstract Property<Boolean> getOptimize()
      Run optimizations.
    • getIsOptimize

      @Internal public Property<Boolean> getIsOptimize()
    • getEncoding

      @Optional @Input public abstract Property<String> getEncoding()
      Encoding of source files.
    • getForce

      @Input public abstract Property<Boolean> getForce()
      Whether to force the compilation of all files. Legal values: - false (only compile modified files) - true (always recompile all files)
    • getIsForce

      @Internal public Property<Boolean> getIsForce()
    • getAdditionalParameters

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

      @Console public abstract Property<Boolean> getListFiles()
      List files to be compiled.
    • getIsListFiles

      @Internal public Property<Boolean> getIsListFiles()
    • getLoggingLevel

      @Console public abstract Property<String> getLoggingLevel()
      Specifies the amount of logging. Legal values: none, verbose, debug
    • getLoggingPhases

      @Console public abstract ListProperty<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.
    • getForkOptions

      public ScalaForkOptions getForkOptions()
      Options for running the Scala compiler in a separate process.
    • 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.
    • 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