Kirill Rakhman
Kirill Rakhman

Reputation: 43861

Kotlin: Incremental compilation with Gradle

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

Answers (2)

Andrey Breslav
Andrey Breslav

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

LukaCiko
LukaCiko

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

Related Questions