From d9d6c425e72896bf07df4ede718c4f205d8a4676 Mon Sep 17 00:00:00 2001 From: Thad House Date: Fri, 14 Oct 2022 19:39:54 -0700 Subject: [PATCH] [build] Force Java 11 source compatibility (#4472) We want to have the option of falling back to a Java 11 runtime, at least for this year. --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index d111e27548..ed2613b3bc 100644 --- a/build.gradle +++ b/build.gradle @@ -108,6 +108,11 @@ subprojects { subproj.apply plugin: MultiBuilds } + plugins.withType(JavaPlugin) { + sourceCompatibility = 11 + targetCompatibility = 11 + } + apply from: "${rootDir}/shared/java/javastyle.gradle" // Disables doclint in java 8.