Incremental Building of Android Kotlin modules with kapt is broken in Gradle >2.13

There seems to be an issue where Android-Kotlin modules with kapt seem to be rebuilt everytime even when no code is changed (but e.g. only a resource).

Here’s the related issue in the Kotlin bug tracker:

The problem is worsened by the fact that the latest Android plugin now requires Gradle 2.14.1 which also exhibits this behavior.

If I understand this correctly, this is a problem with the Android plugin and the Kotlin plugin and not with Gradle itself? Can you confirm?

Difficult to say. It appeared only in 2.14 and 2.14.1 but seems to be fixed in 3.0. The Kotlin team is also aware of it and are planing to release a workaround in the next version.