gradle
8.4

# ScalaSourceSet

interface ScalaSourceSet(source)

### Deprecated

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

#### Deprecated

Using conventions to contribute source sets is deprecated. You can configure the groovy sources via the `ScalaSourceDirectorySet` extension (e.g. `sourceSet.getExtensions().getByType(ScalaSourceDirectorySet.class).setSrcDirs(...)`). This interface is scheduled for removal in Gradle 9.0.

## Functions

getAllScala
Link copied to clipboard
abstract fun getAllScala(): SourceDirectorySet
All Scala source for this source set.
getScala
Link copied to clipboard
abstract fun getScala(): SourceDirectorySet
Returns the source to be compiled by the Scala compiler for this source set.
scala
Link copied to clipboard
abstract fun scala(@DelegatesTo(value = SourceDirectorySet::class) configureClosure: Closure): ScalaSourceSet
abstract fun scala(configureAction: Action<out Any>): ScalaSourceSet
Configures the Scala source for this set.