From 886c741a54695c0d0e9f3439950413430c9fc109 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Fri, 7 Mar 2014 16:40:55 -0500 Subject: [PATCH] Use Java 1.7 for test sources --- build.gradle | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index a3e4f4fc..fbf9118e 100644 --- a/build.gradle +++ b/build.gradle @@ -24,8 +24,15 @@ configure(subprojects.findAll {it.name != "spring-build-src"}) { subproject -> apply plugin: "merge" apply from: "${rootProject.projectDir}/publish-maven.gradle" - sourceCompatibility=1.6 - targetCompatibility=1.6 + compileJava { + sourceCompatibility=1.6 + targetCompatibility=1.6 + } + + compileTestJava { + sourceCompatibility=1.7 + targetCompatibility=1.7 + } [compileJava, compileTestJava]*.options*.compilerArgs = ["-Xlint:none"]