From 6baccbf2bd4d241ff39121e3e3674f1fe8ffd70b Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Wed, 8 Nov 2023 09:28:07 +0100 Subject: [PATCH] Use Gradle toolchains to run tests --- tests/build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/build.gradle.kts b/tests/build.gradle.kts index 5b714f2b3..196402d66 100644 --- a/tests/build.gradle.kts +++ b/tests/build.gradle.kts @@ -24,6 +24,12 @@ javaVersion { version = JavaVersion.VERSION_21 } +java { + toolchain { + languageVersion = JavaLanguageVersion.of(21) + } +} + dependencies { testImplementation(project(":core")) testImplementation(project(":classlib"))