From 03527b283120990ee27a1ca0460bac2494646855 Mon Sep 17 00:00:00 2001 From: Marcus Da Coregio Date: Wed, 22 Jun 2022 10:13:49 -0300 Subject: [PATCH] Use JDK 17 on Build Closes gh-11324 --- build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle b/build.gradle index 70bf7349bc..baaa773fa1 100644 --- a/build.gradle +++ b/build.gradle @@ -164,6 +164,12 @@ allprojects { } } } + + tasks.withType(JavaCompile).configureEach { + javaCompiler = javaToolchains.compilerFor { + languageVersion = JavaLanguageVersion.of(17) + } + } } if (hasProperty('buildScan')) {