https://kotlinlang.org logo
Title
i

irus

11/02/2018, 11:57 AM
As I understand this is the only way to enable progressive mode currently (Kotlin DSL)?
tasks.withType<KotlinJvmCompile> {
    kotlinOptions {
        freeCompilerArgs += listOf("-Xprogressive")
    }
}
g

gildor

11/02/2018, 12:15 PM
Yes, probably you also can call
freeCompilerArgs.add
, but it depends on freeCompilerArgs implementation
n

Nikky

11/02/2018, 12:40 PM
gradle tells me it wants
-progressive
but apart ro mthat i use the same
i

irus

11/02/2018, 1:14 PM
Looks like there are nicer syntax:
kotlin.sourceSets.all {
    languageSettings.progressiveMode = true
}
g

gildor

11/02/2018, 1:15 PM
hmm, interesting, looks that it’s a new syntax, nice