How to avoid IntelliJ to reset language level?
I just update the pom.xml
and it works for me.
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>1.11</source>
<target>1.11</target>
<release>11</release>
</configuration>
</plugin>
You can update the Java Compiler version of your module to be executed to use Java version 10 with the following settings :
Build, Execution, Deployment => Compiler => Java Compiler => Update Target Bytecode version
In the image above you can notice that the modules guice and hbase are defaulting to use Java version 5 while I've updated the others to use Java version 11 which is when compiling and executing them with JDK 11 works just fine.