some time ago I've wrote to the kotlin forum about...
# scripting
l
some time ago I've wrote to the kotlin forum about that setting jvmtarget=11 breaks kotlin dsl used in scripting, the full discussion is here: https://discuss.kotlinlang.org/t/setting-jvmtarget-to-11-breaks-dsl. Posting here to see if there is any one that know how to fix that
i
Hi @lburgazzoli Sorry for being too late, I see that you've found the solution. But I guess that the main problem here is that you're not processing the errors, returned by the compiler, otherwise you'd see the inlining error right away. I recommend you to add at least
.valueOrThrow()
here - https://github.com/lburgazzoli/camel-kotlin-runner/blob/5e91dd8ed933f4a5f7604dca918f54d4817a1801/src/main/kotlin/com/github/lburgazzoli/camel/kotlin/runner/KotlinRouteLoader.kt#L61
l
yeah it was my fault sorry 🙂