hastebrot
10/21/2016, 1:46 AMjmods 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