Seeing some strange errors on Travis CI & Appveyor

I’ve noticed a couple of my releases on the above CI cloud systems fails with Failed to notify project evaluation listener errors. I cannot get to the bottom of this. Maybe some other Gradle folks might have a clue. Running the test with -S does not produce any useful stacktrace.

* What went wrong:
A problem occurred configuring root project 'gnumake-gradle-plugin'.
> Failed to notify project evaluation listener.
   > java/util/function/ToIntFunction

It turns out that the code has been compiled with JDK8. I thought that having the following in the build script
keep it compatible with JDK6.

sourceCompatibility = 1.6
targetCompatibility = 1.6

Apparantly not …