From 2577ac300b608899ab7327e16a97853c7188507a Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 15 Jul 2015 15:21:37 +0200 Subject: [PATCH] Refined spring-oxm test execution check for compatibility with the recently announced JDK 9 version scheme Issue: SPR-13012 --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }