Use freeCompilerArgs += "-Xjsr305=strict"

See https://youtrack.jetbrains.com/issue/KT-41985
This commit is contained in:
Sébastien Deleuze
2023-01-09 10:01:34 +01:00
parent b6ed535e3d
commit 0906a3d831
2 changed files with 2 additions and 2 deletions

View File

@@ -103,7 +103,7 @@ This feature can be enabled by adding the `-Xjsr305` compiler flag with the `str
----
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
freeCompilerArgs += "-Xjsr305=strict"
}
}
----

View File

@@ -39,7 +39,7 @@ dependencies {
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
freeCompilerArgs += "-Xjsr305=strict"
}
}