I’ve imported a Maven project created from https://start.spring.io/ and am receiving an error in the Problems tab:
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
However, I do not see a way to set the jvm-target for Kotlin from within Eclipse. This project works building with Maven.
You can configure jvmTarget
in maven using the attributes in the configuration
element of the plugin, or using the properties. See http://kotlinlang.org/docs/reference/using-maven.html#specifying-compiler-options for details.
I’m not sure about Eclipse plugin though, whether it supports these properties.
There is a pull request that adds possibility to set jvmTarget
and other options.