api / org.gradle.api.tasks / SourceSet / java

java

abstract fun java(configureClosure: Closure<Any>): SourceSet

Configures the Java source for this set.

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

Parameters

configureClosure - The closure to use to configure the Java source.

Return
this

abstract fun java(configureAction: Action<in SourceDirectorySet>): SourceSet

Configures the Java source for this set.

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

Parameters

configureAction - The action to use to configure the Java source.

Return
this