5

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?

Michał Z.
  • 4,119
  • 1
  • 22
  • 32

3 Answers3

4

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

Community
  • 1
  • 1
Michał Z.
  • 4,119
  • 1
  • 22
  • 32
2

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
Ilya
  • 21,871
  • 8
  • 73
  • 92
1

It is all about maven build logic. Look here for more details: Maven Incremental Build

kutsyk
  • 185
  • 1
  • 13