From 4ce36eae0faaa66eba9e90737bd5e3a565f585b8 Mon Sep 17 00:00:00 2001 From: Nikita Tkachenko <121111529+nikita-tkachenko-datadog@users.noreply.github.com> Date: Mon, 20 Jan 2025 12:04:59 +0100 Subject: [PATCH] Compile latest dep tests for Karate with Java 11 (#8249) --- dd-java-agent/instrumentation/karate/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dd-java-agent/instrumentation/karate/build.gradle b/dd-java-agent/instrumentation/karate/build.gradle index 097701ffe99..2832208a3f2 100644 --- a/dd-java-agent/instrumentation/karate/build.gradle +++ b/dd-java-agent/instrumentation/karate/build.gradle @@ -80,3 +80,9 @@ sourceSets { } } } + +tasks.named("compileLatestDepTestJava").configure { + setJavaVersion(it, 11) + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 +}