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

PlatformScalaCompile

@CacheableTask @Incubating open class PlatformScalaCompile : AbstractScalaCompile

A platform-aware Scala compile task.

Constructors

<init>

PlatformScalaCompile()

Functions

getPlatform

open fun getPlatform(): ScalaPlatform

setPlatform

open fun setPlatform(platform: ScalaPlatform): Unit

Inherited Functions

getEffectiveAnnotationProcessorPath

open fun getEffectiveAnnotationProcessorPath(): FileCollection

Returns the path to use for annotation processor discovery. Returns an empty collection when no processing should be performed, for example when no annotation processors are present in the compile classpath or annotation processing has been disabled.

You can specify this path using CompileOptions#setAnnotationProcessorPath(FileCollection) or CompileOptions#setCompilerArgs(java.util.List). When not explicitly set using one of the methods on CompileOptions, the compile classpath will be used when there are annotation processors present in the compile classpath. Otherwise this path will be empty.

This path is always empty when annotation processing is disabled.

getOptions

open fun getOptions(): CompileOptions

Returns the Java compilation options.

getScalaCompileOptions

open fun getScalaCompileOptions(): BaseScalaCompileOptions

Returns the Scala compilation options.

getSource

open fun getSource(): FileTree

{@inheritDoc}