Hi! Does anybody know how to change jvm-target for...
# intellij
y
Hi! Does anybody know how to change jvm-target for Kotlin Scratch files ? It's a useful thing I enjoy to use ) But It doesn't work when I want to call Java static functions. Project is under Gradle and jvm-target is set to 1.8 in its build.gradle.kts file as well as in Settings --> Build, Execution, Deployment --> Compiler --> Kotlin Compiler. But it doesn't affect sratch files.
Path.of("path/to/some/file")
-->
"Calls to static methods in Java interfaces are prohibited in JVM target 1.6. Recompile with '-jvm-target 1.8'"
a
Related issue: https://youtrack.jetbrains.com/issue/KT-35667. We'll see if this can be solved quickly at least for scratch files.