how to stop intellij from resetting the language level everytime you add a maven dependancy code example
Example: fix intellij resetting the java version everytime you add a dependency
Add this to your pom.xml you can set to whatever java version you want in
this example I used Java 14 as an example.
<properties>
<maven.compiler.source>14</maven.compiler.source>
<maven.compiler.target>14</maven.compiler.target>
</properties>