e07b2e30e2
If running incrementally, even if there aren't any Kotlin sources to compile, there could be stale output files that need to be removed. E.g stub generation must have generated .java files removed if all Kotlin sources are removed. Kotlin compile task will be skipped only if there are no Kotlin sources and task run is non-incremental. Test: KaptIncrementalIT.testRemoveAllKotlinSources