api / org.gradle.api.tasks / ScalaSourceSet

ScalaSourceSet

interface ScalaSourceSet

A ScalaSourceSetConvention defines the properties and methods added to a by the ScalaPlugin.

Functions

getAllScala

abstract fun getAllScala(): SourceDirectorySet

All Scala source for this source set.

getScala

abstract fun getScala(): SourceDirectorySet

Returns the source to be compiled by the Scala compiler for this source set. This may contain both Java and Scala source files.

scala

abstract fun scala(configureClosure: Closure<Any>): ScalaSourceSet

Configures the Scala source for this set.

The given closure is used to configure the SourceDirectorySet which contains the Scala source.

abstract fun scala(configureAction: Action<in SourceDirectorySet>): ScalaSourceSet

Configures the Scala source for this set.

The given action is used to configure the SourceDirectorySet which contains the Scala source.