sourceSet

fun sourceSet(name: String, failOnMissingName: Boolean = true)

Adds the SourceSet with the provided name to the contents of the SourceJar. In case the source set does not exist, if failOnMissingName is set, the task throws IllegalStateException.


fun sourceSet(sourceSet: SourceSet)

Adds a sourceSet source.


fun sourceSet(sourceDirectorySet: SourceDirectorySet)

Adds a sourceDirectorySet source.