withSourcesJar

abstract fun withSourcesJar()

Automatically package sources from the linked SourceSet and register the produced JAR as a variant. See also withSourcesJar.