Marc
06/09/2022, 5:02 PMwithType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xcontext-receivers")
}
}
But when I try to use context
into a function it looks not detecting it. (I just created a simple JVM project) does anyone have idea what could happen?tapchicoma
06/09/2022, 5:04 PMMarc
06/09/2022, 5:04 PMMarc
06/09/2022, 5:04 PMExpecting a top level declaration
Marc
06/09/2022, 5:05 PMMarc
06/09/2022, 5:05 PMtapchicoma
06/09/2022, 5:05 PMMarc
06/09/2022, 5:06 PMMarc
06/09/2022, 5:06 PMMarc
06/09/2022, 5:06 PMMarc
06/09/2022, 5:07 PMMarc
06/09/2022, 5:07 PMtapchicoma
06/09/2022, 5:08 PMtapchicoma
06/09/2022, 5:08 PMMarc
06/09/2022, 5:09 PMMarc
06/09/2022, 5:09 PMtapchicoma
06/09/2022, 5:09 PMMarc
06/09/2022, 5:09 PMtapchicoma
06/09/2022, 5:11 PMbuild.gradle
?Marc
06/09/2022, 5:12 PMtapchicoma
06/09/2022, 5:12 PMMarc
06/09/2022, 5:12 PMMarc
06/09/2022, 5:13 PMtapchicoma
06/09/2022, 5:14 PMgradlew.bat assemble
Marc
06/09/2022, 5:15 PMMarc
06/09/2022, 5:15 PMtapchicoma
06/09/2022, 5:15 PM./gradlew assemble
Vampire
06/09/2022, 5:16 PMMarc
06/09/2022, 5:18 PMMarc
06/09/2022, 5:18 PMMarc
06/09/2022, 5:19 PMtapchicoma
06/09/2022, 5:20 PMMarc
06/09/2022, 5:21 PMMarc
06/09/2022, 5:21 PMVampire
06/09/2022, 5:22 PMyou can see that it saysd im up to dateMaybe there is not 2021.2 version of the plugin. At least for 2021.3 on, there is:
tapchicoma
06/09/2022, 5:22 PMMarc
06/09/2022, 5:23 PMMarc
06/09/2022, 5:23 PMtapchicoma
06/09/2022, 5:23 PM212
is quite old, latest one is 221
Marc
06/09/2022, 5:24 PMtapchicoma
06/09/2022, 5:24 PMVampire
06/09/2022, 5:24 PMtapchicoma
06/09/2022, 5:25 PMMarc
06/09/2022, 5:26 PMVampire
06/09/2022, 5:27 PMMarc
06/09/2022, 5:27 PMMarc
06/09/2022, 5:28 PMMarc
06/09/2022, 5:28 PM