From b70f2f25193f5054446f180511dfad86d70681ad Mon Sep 17 00:00:00 2001 From: Stuart McCulloch Date: Sat, 18 Oct 2025 01:26:59 +0100 Subject: [PATCH 1/2] Remove trie resource files from dd-java-agent jar These are used to generate Java code during build, no need to include the original files --- dd-java-agent/build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dd-java-agent/build.gradle b/dd-java-agent/build.gradle index 6e9b2daf5e0..1c369d10225 100644 --- a/dd-java-agent/build.gradle +++ b/dd-java-agent/build.gradle @@ -76,6 +76,9 @@ def generalShadowJarConfig(ShadowJar shadowJarTask) { exclude '**/inst/META-INF/versions/**' exclude '**/META-INF/versions/*/org/yaml/**' + // Used to generate Java code during build, no need to include original file + exclude '**/*.trie' + // Replaced by 'instrumenter.index', no need to include original service file exclude '**/META-INF/services/datadog.trace.agent.tooling.InstrumenterModule' From c1714272b2b0a627290699e74305a184f1833789 Mon Sep 17 00:00:00 2001 From: Stuart McCulloch Date: Sat, 18 Oct 2025 01:43:44 +0100 Subject: [PATCH 2/2] Remove unused package.html files from dd-java-agent jar --- dd-java-agent/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/dd-java-agent/build.gradle b/dd-java-agent/build.gradle index 1c369d10225..cacc90e7d92 100644 --- a/dd-java-agent/build.gradle +++ b/dd-java-agent/build.gradle @@ -75,6 +75,7 @@ def generalShadowJarConfig(ShadowJar shadowJarTask) { exclude '**/liblz4-java.dylib' exclude '**/inst/META-INF/versions/**' exclude '**/META-INF/versions/*/org/yaml/**' + exclude '**/package.html' // Used to generate Java code during build, no need to include original file exclude '**/*.trie'