title: Error:Kotlin: Module was compiled with an incompatible version of Kotlin in a project of Spring Boot with Java not Kotlin not gradle
body: <p>Intellij IDEA and JDK 11, this is not an android project, not using Kotlin. It is a Spring Boot application generated with initilizer. Like this:</p>
  <blockquote>
  <p>https://start.spring.io/starter.zip?type=maven-project&amp;language=java&amp;bootVersion=2.6.3&amp;baseDir=demo&amp;groupId=com.example&amp;artifactId=demo&amp;name=multidatasource&amp;description=Demo%20project%20for%20Spring%20Boot&amp;packageName=com.example.demo&amp;packaging=jar&amp;javaVersion=11&amp;dependencies=lombok,data-jpa,mysql,webflux,data-rest</p>
  </blockquote>
  <p>Then I added service code in it. When built, it stopped for been missing error, after I fix them, it cannot be built at all, IDEA gives error:</p>
  <blockquote>
  <p>Information:Kotlin: kotlinc-jvm 1.3.41 (JRE 11.0.4+10-b304.77)</p>
  <p>Information:2/11/2022 3:20 PM - Build completed with 1 error and 0 warnings in 1 s 823 ms</p>
  <p>Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.</p>
  </blockquote>
  <p><code>pom.xml</code> remains the same as generated from above link. I checked IDEA module settings, nothing odd.
  And I <code>grep -rn kotlin *</code> in project folder, no matched result.</p>
  <p>Then I wonder if it is because dependency has kotlin confliction, so I start from a fresh download project, and run it successfully (it proves that kotlin problem is not because of dependencies); then I replace folder <code>src</code>, it run successfully too.</p>
  <p>Has anyone used a Spring Boot + Java + maven, and IDEA, and perhaps JDK11, and encountered the same error?</p>
  <p>Thanks.</p>
  <p><a href="https://i.stack.imgur.com/Pqb0d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pqb0d.png" alt="Error" /></a></p>
  <p>updates:
  <strong>I think this is an Intellij IDEA bug, not all <code>run</code> has this problem</strong></p>