api / org.gradle.api.tasks / SourceSet / getJava

getJava

abstract fun getJava(): SourceDirectorySet

Returns the Java source which is to be compiled by the Java compiler into the class output directory.

Return
the Java source. Never returns null.