so I have my little <demo project with a minimal S...
# getting-started
s
so I have my little demo project with a minimal Spring Boot Application with Maven and Kotlin and it works, but there are two open questions: • adding
<kotlin.compiler.jvmTarget>11</kotlin.compiler.jvmTarget>
to the properties section of the main pom-file should switch the bytecode version, produced, but doesn't (i also tried
<kotlin.compiler.jvmTarget>"11"</kotlin.compiler.jvmTarget>
because that's how the documentation shows it, but I've see a bug ticket where an Int was used and nobody complained about it) but the Bytecode version is still JDK17 which is the JDK at JAVA_HOME:
Copy code
$ file ./application/target/classes/com/example/multimodule/application/MyController.class 
./application/target/classes/com/example/multimodule/application/MyController.class: compiled Java class data, version 61.0
• the documentation tells me to create a
./mvn/jvm.config
file with
Copy code
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED
in it in order to use JDK 17, but it didn't and everything still worked und I do use a JDK 17 🤷‍♂️ I later added it and nothing changed. So what is this supposed to be for?
j
the spring boot parent manages the target based on the
java.version
property
👍 1