I failed miserable trying to compile Kotlin files ...
# announcements
h
I failed miserable trying to compile Kotlin files on JDK 9 EA with Jigsaw (Jigsaw is already included in the default JDK 9 EA builds, the Java modules are in the
jmods
directory). The Kotlin compiler uses IntelliJ utility classes that require e.g.
sun.reflect.ConstructorAccessor
. I tried to pass
"-XaddExports:java.base/sun.reflect=ALL-UNNAMED"
as JVM parameters to the Kotlin compiler via the kotlin-gradle-plugin 1.0.4 via a
compileKotlin {}
configuration block. But it seems there is no configuration option for JVM args: https://github.com/JetBrains/kotlin/blob/1.0.4/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JVMCompilerArguments.java