build.gradle.kts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
  18. }
  19. val testReceiveSpansDisabled by registering(Test::class) {
  20. filter {
  21. includeTestsMatching("InterceptorsSuppressReceiveSpansTest")
  22. includeTestsMatching("WrapperSuppressReceiveSpansTest")
  23. }
  24. include("**/InterceptorsSuppressReceiveSpansTest.*", "**/WrapperSuppressReceiveSpansTest.*")
  25. }
  26. test {
  27. filter {
  28. excludeTestsMatching("InterceptorsSuppressReceiveSpansTest")
  29. excludeTestsMatching("WrapperSuppressReceiveSpansTest")
  30. }
  31. jvmArgs("-Dotel.instrumentation.messaging.experimental.receive-telemetry.enabled=true")
  32. }
  33. check {
  34. dependsOn(testReceiveSpansDisabled)
  35. }
  36. }