IntelliJ fails to understand that jvmToolchain sets the Kotlin jvmTarget and issues warnings about it, despite no warnings being issued by the Gradle build itself. I have to add that snippet to a new plugin project build.gradle.kts to silence the warnings.
Steps to reproduce:
Create a new project.
You will get warnings about service calls that cannot be inlined from jvmTarget = "1.8" to code compiled for target 11.
Expected behavior:
The correct jvmTarget version is used so no warnings are issued.
Describe the bug: Without:
IntelliJ fails to understand that
jvmToolchain
sets the KotlinjvmTarget
and issues warnings about it, despite no warnings being issued by the Gradle build itself. I have to add that snippet to a new plugin projectbuild.gradle.kts
to silence the warnings.Steps to reproduce:
service
calls that cannot be inlined fromjvmTarget = "1.8"
to code compiled for target 11.Expected behavior: The correct
jvmTarget
version is used so no warnings are issued.Additional context: IntelliJ IDEA 2022.2.3