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')) {