DirectoryConnection

interface DirectoryConnection

A DirectoryConnection defines how the generated sources are connected to the rest of the build.

It provides helpers for the most common options as well as direct access to an output Provider that will carry task dependency.

It is valid to call multiple connectXyz() methods to connect the generated sources to multiple downstream tasks

Functions

connectToAndroidSourceSet
Link copied to clipboard
abstract fun connectToAndroidSourceSet(name: String)
Connects the generated sources to the given Android source set.
connectToAndroidVariant
Link copied to clipboard
abstract fun connectToAndroidVariant(variant: BaseVariant)
Connects the generated sources to the given Android variant.
connectToJavaSourceSet
Link copied to clipboard
abstract fun connectToJavaSourceSet(name: String)
Connects the generated sources to the given Java source set.
connectToKotlinSourceSet
Link copied to clipboard
abstract fun connectToKotlinSourceSet(name: String)
Connects the generated sources to the given Kotlin source set.

Properties

outputDir
Link copied to clipboard
abstract val outputDir: Provider<Directory>
The directory where the generated models will be written.
task
Link copied to clipboard
abstract val task: TaskProvider<out Task>
The task that produces outputDir.