For some time Kotlin allowed to set kotlin.incremental=true
and since 1.1.2 there is also kotlin.compiler.incremental=true
.
I would like to know what is the difference between these two?
According to Alexey Tsvetkov kotlin.compiler.incremental
is maven only, and it is named similar to other maven options.
kotlin.compiler.incremental
is a property, which can be set in a maven project to enable incremental kotlin compilation by default.
It is set in the properties block in pom.xml
:
<project>
...
<properties>
<kotlin.compiler.incremental>true</kotlin.compiler.incremental>
</properties>
...
</project>
Or you can pass this option with the command line argument:
mvn install -Dkotlin.compiler.incremental=true
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