Reputation: 43861
In the M9 announcement it was said that incremental compilation is now supported. Does this also work with Gradle, especially Android? If yes, how to enable it?
Upvotes: 12
Views: 8328
Reputation: 25787
Update: as of Kotlin 1.1.1, Gradle incremental compilation is now enabled by default.
--- Old answer:
For now incremental compilation only works in the IDE when you use the Make algorithm supported by IntelliJ IDEA. We are looking into extending this to other build systems, but we are not there yet.
Upvotes: 15
Reputation: 4445
Incremental compilation in Gradle and IDE was added in Kotlin 1.0.2. It is enabled in IDE is enabled by default. To enable it for Gradle you will need to add kotlin.incremental=true
to your gradle.properties
file.
Upvotes: 7