How would I make the script use k2 compiler? I wan...
# scripting
e
How would I make the script use k2 compiler? I want that since the parent project uses k2 and it's currently throwing errors
ERROR Class 'Blah' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler (hello.ds.kts:3:1)
Simply doing
Copy code
compilerOptions("-Xuse-k2")
Didn't seem to work either.
i
Scripts are not yet supported in K2. We're planning to provide some support eventually, but the timeframe is not yet known. On the other hand, you can try to compile script with
-Xallow-unstable-dependencies
option, this should help with the "pre-release" error above.