Hi! I'm working on the Gradle plugin and symbol pr...
# ksp
n
Hi! I'm working on the Gradle plugin and symbol processor. The use of that plugin implies that the symbol processor should also be used. So I have decided to create yet another Gradle plugin to reduce all necessary repository, dependency etc configurations to one line. The question is: to make IDE aware of the generated code I would add something like this in my build file:
Copy code
sourceSets {
   main.kotlin.srcDir("build/generated/ksp/main/kotlin/")
}
But should my plugin do this when applied to the project? Or should I leave this configuration to the end-user? I'm in such a dither over this because the KSP plugin itself doesn't add generated paths in source sets.
e
I would suggest against it because it really should be ksp or the ide that does this, and it might conflict with other processors the user adds or if they are trying to work around it themselves.
n
Thank you for your opinion. Now I tend to think that it is indeed out of the scope of my plugin. Given that
Make the IDE aware of the generated code
is mentioned as a planned feature, I might just leave everything as is for now.