From 4f2e35956b1d103495648226587936a85aa6f7ed Mon Sep 17 00:00:00 2001 From: Richard Li Date: Tue, 25 Feb 2025 09:28:07 -0800 Subject: [PATCH] build(jvm): define java toolchain to be 21 this should force gradle to run all tasks under java 21, so we stop getting partner support requests when they try to build the repo with java17 instead of 21. --- build.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 778a136b053..e8d8c18cd6b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -71,6 +71,14 @@ tasks.coverageReport { } allprojects { + plugins.withType().configureEach { + java { + toolchain { + languageVersion = JavaLanguageVersion.of(21) + } + } + } + tasks.configureEach { if (this is JavaForkOptions) { jvmArgs("-XX:ErrorFile=${rootProject.file("build/reports").absolutePath}/hs_err_pid%p.log")