Closes gh-11324
@@ -164,6 +164,12 @@ allprojects {
}
+
+ tasks.withType(JavaCompile).configureEach {
+ javaCompiler = javaToolchains.compilerFor {
+ languageVersion = JavaLanguageVersion.of(17)
+ }
if (hasProperty('buildScan')) {