You can also use compiler plugin to do source codegen faster than kapt since you can codegen in the analysis phases and feed the compiler extra sources without stub generations and everything kapt does and with a more precise model than the Java typelements