You can get Java8 from here: http://jdk8.java.net/download.html
The code should preferably be modified to support Java8 (prereleases) plus be fixed to throw the intended IllegalArgumentException when unknown version is seen.
Caused by: java.lang.ArrayIndexOutOfBoundsException: 7
at org.gradle.api.JavaVersion.toVersion(JavaVersion.java:60)
at org.gradle.api.JavaVersion.current(JavaVersion.java:71)
at org.gradle.api.internal.tasks.compile.JavaCompilerArgumentsBuilder.addMainOptions(JavaCompilerArgumentsBuilder.java:87)
at org.gradle.api.internal.tasks.compile.JavaCompilerArgumentsBuilder.build(JavaCompilerArgumentsBuilder.java:62)
|