Im working on a mod and testing it in eclipse runs fine but when I want to turn it into a jar file by running gradlew build I get the Error
error: lambda expressions are not supported in -source 1.6
McR.ex(McR.ex(enderman),3,() -> {});
^
(use -source 8 or higher to enable lambda expressions)
Im using
Gradle 2.7
java version "1.8.0_351"
javac 1.8.0_351
All of my Path and JAVA_HOME environment variable are correct (set to 1.8) and Im not sure what else to check.
In eclipse I did have to say Change project compliance and JRE to 1.8 as this popped up on the lambda error.