Parcourir la source

Use JDK 17 on Build

Closes gh-11324
Marcus Da Coregio il y a 3 ans
Parent
commit
03527b2831
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      build.gradle

+ 6 - 0
build.gradle

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