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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With