How to supress OptIn warnings in Gradle and during Git commit code analysis

If you are using kotlin multiplatform, a simpler/more idiomatic way to enable the RequiresOptIn annotation is:

kotlin.sourceSets.all {
    languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
}
6 Likes