Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between these Kotlin compiler flags?

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?

like image 241
Michał Z. Avatar asked Apr 26 '17 11:04

Michał Z.


2 Answers

According to Alexey Tsvetkov kotlin.compiler.incremental is maven only, and it is named similar to other maven options.

like image 88
Michał Z. Avatar answered Sep 18 '22 02:09

Michał Z.


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
like image 24
Ilya Avatar answered Sep 20 '22 02:09

Ilya