Hi. How am I supposed to add sourceSet wiuth my ge...
# gradle
p
Hi. How am I supposed to add sourceSet wiuth my genberated code?
Copy code
sourceSets.named("main") {
	java.srcDirs("$buildDir/generated/graphql")
}
SourceSet with name 'main' not found.
Solved it! In
kotlin
block:
Copy code
sourceSets.main {
	kotlin.srcDirs("$buildDir/generated/graphql")
}
e
note that doesn't set up task dependencies on its own
d
side note: depending on the plugin those autogenerated sources might already be added to the sourcesets