Upgrade shadow to 4.0.1 and exclude module-info.class files.
MODIFY
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/Utils.java
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/Utils.java
@@ -37,8 +37,6 @@ public class Utils {
"org.msgpack",
"com.fasterxml.jackson",
"org.yaml.snakeyaml",
- // modules
- "module-info",
};
private static Method findLoadedClassMethod = null;

MODIFY
dd-java-agent/dd-java-agent.gradle
dd-java-agent/dd-java-agent.gradle
plugins {
- id "com.github.johnrengelman.shadow" version "2.0.4"
+ id "com.github.johnrengelman.shadow" version "4.0.1"
}
description = 'dd-java-agent'
@@ -32,6 +32,8 @@ def includeShadowJar(subproject, jarname) {
mergeServiceFiles()
+ exclude '**/module-info.class'
+
dependencies {
exclude(dependency("org.projectlombok:lombok:$versions.lombok"))
}

Upgrade shadow to 4.0.1 and exclude module-info.class files.