We have the following settings:
gradle.properties in user home: org.gradle.java.home=C:/Java/jdk1.8.0_72 (we have to use 8 as of some plugins we use)
build.gradle: sourceCompatibility = 1.7 targetCompatibility = 1.7
So gradle runs with a JDK 8 and supposed to build with compatibility 7. At least that’s what we thought. Now if you use a Method from a java8 api like
list.sort(..) the build won’t crash although I use the targets 1.7
What do we miss?