Skip to content

Instantly share code, notes, and snippets.

@xring
Created August 2, 2017 02:13
Show Gist options
  • Save xring/c571e4aaa925136d34634bca117e8710 to your computer and use it in GitHub Desktop.
Save xring/c571e4aaa925136d34634bca117e8710 to your computer and use it in GitHub Desktop.
idea lambda expressions are not supported in -source 1.5

When using lambda in a Maven based project in IntelliJ IDEA, got

idea lambda expressions are not supported in -source 1.5

solved by add this in pom file:

<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment