hey, after bumping my spring-boot project to kotli...
# spring
c
hey, after bumping my spring-boot project to kotlin version 1.5.0-M1 i am getting errors like the one shown in the screenshot. my kotlin compiler options look like
Copy code
subprojects {
    tasks {
        withType<KotlinCompile> {
            dependsOn(ktlintFormat)
            kotlinOptions {
                jvmTarget = "1.8"
                apiVersion = "1.5"
                languageVersion = "1.5"
                freeCompilerArgs = listOf("-Xjsr305=strict")
            }
        }
when running the app via gradle everything works fine but having intellij showing up errors all the time isn’t nice for the workflow ^^ any hint what could be the problem here?
i
@Christian Dräger What SDK version do you have in
Project Structure | Project Language level
?
Can you give a link to your project?
c
unfortunately i am not able to provide a link to project but i can share the config:
image.png
hmm ok moving the kotlin compile task in my project roots build.gradle.kts from subprojects to allprojects fixed it for some reason. but i don’t get why.
🙏 1