Can you use ksp to generate a file stored in the G...
# ksp
h
Can you use ksp to generate a file stored in the Gradle build directory not connected to Kotlin Sourceset, eg resources, to further process the files with other Gradle plugin/task? My current workaround is excluding the file from the resource dir, but a proper solution would be not store the file in the resource dir at all.
e
nothing technically prevents you from just writing a file from your processor without going through CodeGenerator
AndroidX Room does that for example, writing its schema json files to a path configured by a Gradle plugin which sets them as args to the processor
h
Yes, I want to generate a similar file. Okay, so I will just drop the code generator usage.
j
I ran into this too. I opened this feature request: https://github.com/google/ksp/issues/1677