Skip to content

Commit 4302936

Browse files
committed
fix: Still export javax.servlet API as a transitive dep
1 parent 73e0938 commit 4302936

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dd-java-agent/testing/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ dependencies {
4242
// This avoids version conflicts with instrumentation tests that use different jetty versions
4343
compileOnly group: 'org.eclipse.jetty', name: 'jetty-server', version: '9.4.56.v20240826'
4444
runtimeOnly group: 'org.eclipse.jetty', name: 'jetty-server', version: '9.4.56.v20240826'
45+
// Jetty is shadowed, so we need to explicitly provide servlet-api to dependent modules
46+
api group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
4547
// ^ 9.4 last to support java 8
4648
api group: 'com.squareup.okhttp3', name: 'logging-interceptor', version: libs.versions.okhttp.legacy.get()
4749

0 commit comments

Comments
 (0)