build.gradle.kts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. plugins {
  2. id("otel.library-instrumentation")
  3. }
  4. dependencies {
  5. implementation(project(":instrumentation:kafka:kafka-clients:kafka-clients-common:library"))
  6. library("org.apache.kafka:kafka-clients:2.6.0")
  7. testImplementation(project(":instrumentation:kafka:kafka-clients:kafka-clients-0.11:testing"))
  8. testImplementation("com.fasterxml.jackson.core:jackson-databind:2.10.2")
  9. testImplementation("org.testcontainers:kafka")
  10. testImplementation("org.testcontainers:junit-jupiter")
  11. testCompileOnly("com.google.auto.value:auto-value-annotations")
  12. testAnnotationProcessor("com.google.auto.value:auto-value")
  13. }
  14. tasks {
  15. withType<Test>().configureEach {
  16. usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
  17. }
  18. val testReceiveSpansDisabled by registering(Test::class) {
  19. filter {
  20. includeTestsMatching("InterceptorsSuppressReceiveSpansTest")
  21. includeTestsMatching("WrapperSuppressReceiveSpansTest")
  22. }
  23. include("**/InterceptorsSuppressReceiveSpansTest.*", "**/WrapperSuppressReceiveSpansTest.*")
  24. }
  25. test {
  26. filter {
  27. excludeTestsMatching("InterceptorsSuppressReceiveSpansTest")
  28. excludeTestsMatching("WrapperSuppressReceiveSpansTest")
  29. }
  30. jvmArgs("-Dotel.instrumentation.messaging.experimental.receive-telemetry.enabled=true")
  31. }
  32. check {
  33. dependsOn(testReceiveSpansDisabled)
  34. }
  35. }