Keep on getting warnings showing up in IntelliJ ab...
# intellij
n
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
@Sergei Pecherkin [JetBrains] ptal
1
s
Sorry for the long answer. Try to use
Copy code
...
sourceSets {
        all { languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
        }
...
}
Did it help you?
👍 1
👌 1