Generating .kt files via kapt


#1

How to properly generate .kt files using Annotation processor?

I’ve generared files .kt files via javax.annotation.processing.Processor by compileDebugJavaWithJavac task. Unfortunately this task invokes after compileDebugKotlin. So I need to start compilation again to compile generated kotlin files into .class files