From 6daf564866a09fe21fd666aa0df80d00b770bdf2 Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Wed, 30 Oct 2024 12:53:05 +0200 Subject: [PATCH] Fix gwt latest dep tests (#12535) --- instrumentation/gwt-2.0/javaagent/build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/instrumentation/gwt-2.0/javaagent/build.gradle.kts b/instrumentation/gwt-2.0/javaagent/build.gradle.kts index 7a94b9010330..eeb020869ef6 100644 --- a/instrumentation/gwt-2.0/javaagent/build.gradle.kts +++ b/instrumentation/gwt-2.0/javaagent/build.gradle.kts @@ -88,6 +88,12 @@ tasks { classpath(sourceSets["testapp"].java.srcDirs, sourceSets["testapp"].compileClasspath) argumentProviders.add(CompilerArgumentsProvider()) + + if (findProperty("testLatestDeps") as Boolean) { + javaLauncher.set(project.javaToolchains.launcherFor { + languageVersion = JavaLanguageVersion.of(11) + }) + } } val copyTestWebapp by registering(Copy::class) {