We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2c778a4 + 6928e80 commit c341802Copy full SHA for c341802
build.gradle
@@ -39,6 +39,10 @@ if (project.hasProperty("forceCI")) {
39
}
40
41
42
+// comprehensible error message if not running java 8
43
+if(JavaVersion.current() != JavaVersion.VERSION_1_8){
44
+ throw new GradleException("This build script requires java " + JavaVersion.VERSION_1_8 + ", but you are currently using " + JavaVersion.current())
45
+}
46
// Detect jdk location, required to start ant with tools.jar on classpath otherwise javac and tests will fail
47
def java_home = System.properties['java.home']
48
def jdk_home = java_home
0 commit comments