What is the difference between these Kotlin compiler flags?

For some time, Kotlin allowed to install kotlin.incremental=true, but with 1.1.2 there is also kotlin.compiler.incremental=true.

I would like to know what is the difference between the two?

+4
source share
3 answers

According to Aleksey Tsvetkov kotlin.compiler.incremental only maven, and it is called similar to other maven parameters.

+4
source

kotlin.compiler.incremental is a property that can be set in a maven project to enable kotlin incremental compilation by default.

It is installed in the property block in pom.xml:

<project>
    ...
    <properties>
        <kotlin.compiler.incremental>true</kotlin.compiler.incremental>
    </properties>
    ...
</project>

Or you can pass this option with a command line argument:

mvn install -Dkotlin.compiler.incremental=true
+2
source
+1

Source: https://habr.com/ru/post/1675697/


All Articles