outputDirConnection

open override fun outputDirConnection(action: Action<in Service.OutputDirConnection>)

overrides the way the task is connected. Use this if you want to connect the generated sources to another task than the default destination.

By default, the generated sources are connected to:

  • main sourceSet for Kotlin projects

  • commonMain sourceSet for Kotlin multiplatform projects

  • all application variants for Android projects