Keep on getting warnings showing up in IntelliJ about the OptIn annotations. I have inserted the all block into the build.gradle.kts file:
Copy code
all {
languageSettings.useExperimentalAnnotation("kotlin.time.ExperimentalTime")
languageSettings.useExperimentalAnnotation("kotlinx.serialization.UnstableDefault")
}
Unfortunately this doesn't make the warnings disappear. Is there another way to make the warnings disappear for a Kotlin Multiplatform project?
a
Alexey Belkov [JB]
03/18/2020, 10:09 AM
@Sergei Pecherkin [JetBrains] ptal
❓ 1
s
Sergei Pecherkin [JetBrains]
03/19/2020, 7:54 PM
Sorry for the long answer. Try to use
Copy code
...
sourceSets {
all { languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
}
...
}