Sfoglia il codice sorgente

Use JDK 17 on Build

Closes gh-11324
Marcus Da Coregio 3 anni fa
parent
commit
03527b2831
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  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')) {