0074e0209c
Because incremental KAPT tries to reuse .class files produced by kotlinc and javac, it should check for their existence before starting an incremental run. Otherwise, annotation processors that perform type validation will fail to run. Current check counts the number of declared types in processed .java sources, and it makes sure the total number of .class files in compiled sources dirs is equal or higher. Otherwise, KAPT runs non-incrementally. Tests: KaptIncrementalWithIsolatingApt.testMissingKotlinOutputForcesNonIncrementalRun ^KT-41456 In Progress