Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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>

Source by maven.apache.org #
 
PREVIOUS NEXT
Tagged: #fix #intellij #resetting #java #version #everytime #add #dependency
ADD COMMENT
Topic
Name
8+6 =