build.gradle.kts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("org.springframework.kafka")
  7. module.set("spring-kafka")
  8. versions.set("[2.7.0,)")
  9. assertInverse.set(true)
  10. }
  11. }
  12. dependencies {
  13. compileOnly("com.google.auto.value:auto-value-annotations")
  14. annotationProcessor("com.google.auto.value:auto-value")
  15. bootstrap(project(":instrumentation:kafka-clients:kafka-clients-0.11:bootstrap"))
  16. implementation(project(":instrumentation:kafka-clients:kafka-clients-common:library"))
  17. library("org.springframework.kafka:spring-kafka:2.7.0")
  18. testInstrumentation(project(":instrumentation:kafka-clients:kafka-clients-0.11:javaagent"))
  19. testImplementation("org.testcontainers:kafka")
  20. testLibrary("org.springframework.boot:spring-boot-starter-test:2.5.3")
  21. testLibrary("org.springframework.boot:spring-boot-starter:2.5.3")
  22. }
  23. tasks {
  24. test {
  25. usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
  26. // TODO run tests both with and without experimental span attributes
  27. jvmArgs("-Dotel.instrumentation.kafka.experimental-span-attributes=true")
  28. }
  29. }