As you may be aware there’s a Kotlin plugin for Grifofn available at http://artifacts.griffon-framework.org/plugin/kotlin
Given that Kotlin M1 has just been released I wanted to update the plugin to the latest version, however I encountered a few problems.
You see, the Griffon build systm relies on Gant to compile sources,
Apparently Kotlin M1 requires an additional jar (jdk-headers.jar) to be available, if that jar is missing I get the following exception
Caused by: java.lang.IllegalArgumentException: jdkHeaders must be included for mode REGULAR at org.jetbrains.jet.lang.resolve.java.CompilerDependencies.<init>(CompilerDependencies.java:47) at org.jetbrains.jet.lang.resolve.java.CompilerDependencies.compilerDependenciesForProduction(CompilerDependencies.java:94) at org.jetbrains.jet.buildtools.core.BytecodeCompiler.env(BytecodeCompiler.java:52) at org.jetbrains.jet.buildtools.core.BytecodeCompiler.sourcesToDir(BytecodeCompiler.java:94)
On the previous plugin release it was enough to compile Kotlin source from Gant with
Assuming all jars were in the classpath (as shown in https://github.com/griffon/griffon-kotlin-plugin/blob/master/griffon-app/conf/BuildConfig.groovy)
So. Is it possible to circumvent the requirements of jdk-headers or the SecurityException?