Use freeCompilerArgs += "-Xjsr305=strict"
See https://youtrack.jetbrains.com/issue/KT-41985
This commit is contained in:
@@ -103,7 +103,7 @@ This feature can be enabled by adding the `-Xjsr305` compiler flag with the `str
|
|||||||
----
|
----
|
||||||
tasks.withType<KotlinCompile> {
|
tasks.withType<KotlinCompile> {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
freeCompilerArgs = listOf("-Xjsr305=strict")
|
freeCompilerArgs += "-Xjsr305=strict"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ dependencies {
|
|||||||
|
|
||||||
tasks.withType<KotlinCompile> {
|
tasks.withType<KotlinCompile> {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
freeCompilerArgs = listOf("-Xjsr305=strict")
|
freeCompilerArgs += "-Xjsr305=strict"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user