Marc
04/02/2024, 4:05 PMTo use contextual declarations, specify the -Xcontext-receivers compiler option
making me think that I’m still missing one. How can i guess which one? 🙏🏻 thanksWilliam Walker
04/02/2024, 4:12 PMtasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += listOf(
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-Xexplicit-api=strict",
)
}
hfhbd
04/02/2024, 5:15 PMconfigureEach
instead of all
. Starting with Kotlin 2.0, there is also a new kotlin.compilerOption
to set up all compilations directly, and the tasks one is deprecated.Marc
04/02/2024, 5:16 PM