diff --git a/build.gradle b/build.gradle index 9ee303d2d2a..491bfe8227b 100644 --- a/build.gradle +++ b/build.gradle @@ -556,7 +556,7 @@ project("spring-oxm") { targetCompatibility = 1.6 } - if (System.getProperty("java.version").contains("1.9.")) { + if (!System.getProperty("java.version").contains("1.8.")) { // necessary because castor and xjc tasks cannot find the JDK's compiler on JDK 9 compileTestJava.enabled = false }