gradle
8.3

# GroovySourceSet

interface GroovySourceSet

### Deprecated

A `GroovySourceSet` defines the properties and methods added to a SourceSet by the .

#### Deprecated

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

## Functions

getAllGroovy
Link copied to clipboard
abstract fun getAllGroovy(): SourceDirectorySet
All Groovy source for this source set.
getGroovy
Link copied to clipboard
abstract fun getGroovy(): SourceDirectorySet
Returns the source to be compiled by the Groovy compiler for this source set.
groovy
Link copied to clipboard
abstract fun groovy(@Nullable @DelegatesTo(value = SourceDirectorySet::class) configureClosure: Closure): GroovySourceSet
abstract fun groovy(configureAction: Action<out Any>): GroovySourceSet
Configures the Groovy source for this set.