build.gradle.kts 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. plugins {
  2. id("otel.javaagent-testing")
  3. }
  4. dependencies {
  5. testInstrumentation(project(":instrumentation:jaxrs:jaxrs-2.0:jaxrs-2.0-jersey-2.0:javaagent"))
  6. testInstrumentation(project(":instrumentation:jaxrs:jaxrs-2.0:jaxrs-2.0-annotations:javaagent"))
  7. testInstrumentation(project(":instrumentation:servlet:servlet-3.0:javaagent"))
  8. // First version with DropwizardTestSupport:
  9. testImplementation("io.dropwizard:dropwizard-testing:0.8.0")
  10. testImplementation("javax.xml.bind:jaxb-api:2.2.3")
  11. testImplementation("com.fasterxml.jackson.module:jackson-module-afterburner")
  12. }
  13. configurations.testRuntimeClasspath {
  14. resolutionStrategy {
  15. // Requires old Guava. Can't use enforcedPlatform since predates BOM
  16. force("com.google.guava:guava:19.0")
  17. // requires old logback (and therefore also old slf4j)
  18. force("ch.qos.logback:logback-classic:1.2.11")
  19. force("org.slf4j:slf4j-api:1.7.36")
  20. // dropwizard testing is not compatible with jackson 2.16.0
  21. force("com.fasterxml.jackson.core:jackson-databind:2.15.3")
  22. force("com.fasterxml.jackson.module:jackson-module-afterburner:2.15.3")
  23. }
  24. }
  25. tasks.withType<Test>().configureEach {
  26. jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
  27. }