namedSource

fun namedSource(name: String, directory: Directory)

Adds a named source root.

Parameters

name

the name referenced as $name in an embedding instruction

directory

the source root directory


fun namedSource(name: String, directory: Provider<Directory>)

Adds a named source root supplied by another Gradle provider.

Parameters

name

the name referenced as $name in an embedding instruction

directory

the source root provider, including its task dependency