Ver código fonte

Use JDK 17 on Build

Closes gh-11324
Marcus Da Coregio 3 anos atrás
pai
commit
03527b2831
1 arquivos alterados com 6 adições e 0 exclusões
  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')) {