I have a Java Spring Boot application which is coded purely in Java. When I try to run it from Intellij IDEA using run configuration, I get the following error:
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.16.
If I remove build step from run configuration, build using mvn clean install and then run the application, everything works fine.
I have tried changing Kotlin compiler settings in IDEA but the issue persists.