I'm trying to generate some Kotlin code from an an...
# announcements
e
I'm trying to generate some Kotlin code from an annotation processor, and it looks like
kapt
(or
kapt2
) refuses to compile the Kotlin classes. This is the approach I'm using:
Copy code
processingEnvironment
        .filer
        .createResource(SOURCE_OUTPUT, `package`, fileName)
        .apply {
            openWriter().use {
                it.append(source())
            }
        }
Any tips on how to do it? Slack Conversation