with Output Dir
overrides the way the task is wired. Use this if you want to wire the generated sources to another task than the default destination.
By default, the generated sources are wired to:
main sourceSet for Kotlin projects
commonMain sourceSet for Kotlin multiplatform projects
all variants for Android projects