api / org.gradle.api.tasks / GroovySourceSet

GroovySourceSet

interface GroovySourceSet

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

Functions

getAllGroovy

abstract fun getAllGroovy(): SourceDirectorySet

All Groovy source for this source set.

getGroovy

abstract fun getGroovy(): SourceDirectorySet

Returns the source to be compiled by the Groovy compiler for this source set. Any Java source present in this set will be passed to the Groovy compiler for joint compilation.

groovy

abstract fun groovy(configureClosure: Closure<Any>): GroovySourceSet

Configures the Groovy source for this set.

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

abstract fun groovy(configureAction: Action<in SourceDirectorySet>): GroovySourceSet

Configures the Groovy source for this set.

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