gradle-plugins.kotlin-library.0.1.0-rc.6.source-code.DefaultLanguageSettings.kt Maven / Gradle / Ivy
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
fun KotlinSourceSet.addDefaultLanguageSettings() {
with(languageSettings) {
optIn("kotlin.ExperimentalStdlibApi")
optIn("kotlin.RequiresOptIn")
optIn("kotlin.time.ExperimentalTime")
optIn("kotlinx.coroutines.ExperimentalCoroutinesApi")
optIn("kotlinx.coroutines.FlowPreview")
optIn("kotlinx.coroutines.ObsoleteCoroutinesApi")
optIn("kotlinx.serialization.ExperimentalSerializationApi")
optIn("kotlinx.serialization.InternalSerializationApi")
optIn("io.ktor.util.KtorExperimentalAPI")
}
}