Set source level to 1.8 in pom and update eclipse.