neugartf
06/04/2021, 6:33 PMScriptJvmCompiler
I’m running into a this error:
Using old JVM backend
java.lang.IllegalStateException: The provided plugin org.jetbrains.kotlin.samWithReceiver.SamWithReceiverComponentRegistrar is not compatible with this version of compiler
(Script is placed in buildSrc
)
Does anyone have an idea? JDK is 11.0.10 and Kotlin 1.5.10.
https://scans.gradle.com/s/rdbi5m2x3g27o/failure#1neugartf
06/04/2021, 11:21 PM1.4.31
neugartf
06/07/2021, 7:40 AMkotlin-sam-with-receiver-compiler-plugin-1.4.20
neugartf
06/07/2021, 7:40 AMilya.chernikov
06/14/2021, 7:56 AMneugartf
06/24/2021, 8:52 PMbuildSrc
. Any idea for a work around or should I report it somewhere?
[1] https://github.com/neugartf/ScriptJVMCompiler_SAM_Clashilya.chernikov
06/25/2021, 7:43 AMbuildSrc
stuff is executed inside Gradle, as far as I know, without much isolation (by design, to ensure that it can access necessary Gradle infrastructure without issues), so you cannot use any version of the kotlin libs there. But I tried to set it to 1.4.32 (used in the Gradle 7.1 you're using in the repro project), and it doesn't help, so the problem are deeper.
I created an issue to track the problem - https://youtrack.jetbrains.com/issue/KT-47453
Meanwhile your only option so far is to run these scrips out of process, I guess.neugartf
06/26/2021, 7:47 AM