Java source release 8, 7 or higher is required - IntelliJ

Java source release 8, 7 or higher is required - IntelliJ:

List of java issues:

  • java: diamond operator is not supported in -source 1.5
  • java: multi-catch statement is not supported in -source 1.5
  • lambda expressions are not supported in -source 1.5

Solution:

  1. right click on the module
  2. Open Module Settings
  3. Change language level of the module to 7(Diamonds, ARM, multi-catch) or 8 (Lambdas, type annotations)

Error:java: javacTask: source release 1.8 requires target release 1.8 - IntelliJ:

IntelliJ compiler:

  1. Click on File -> Settings -> Build, Execution, Deployment -> Compiler -> Java Compiler
  2. Open
  3. Change target bytecode version of the module to 1.7 (Diamonds, ARM, multi-catch) or 1.8 (Lambdas, type annotations)

Maven:

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.3</version>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
            </configuration>
        </plugin>
    </plugins>
</build>