build.gradle.kts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("com.rabbitmq")
  7. module.set("amqp-client")
  8. versions.set("[2.7.0,)")
  9. assertInverse.set(true)
  10. }
  11. }
  12. dependencies {
  13. library("com.rabbitmq:amqp-client:2.7.0")
  14. compileOnly("com.google.auto.value:auto-value-annotations")
  15. annotationProcessor("com.google.auto.value:auto-value")
  16. testLibrary("org.springframework.amqp:spring-rabbit:1.1.0.RELEASE") {
  17. exclude("com.rabbitmq", "amqp-client")
  18. }
  19. testInstrumentation(project(":instrumentation:reactor:reactor-3.1:javaagent"))
  20. testLibrary("io.projectreactor.rabbitmq:reactor-rabbitmq:1.0.0.RELEASE")
  21. }
  22. tasks.withType<Test>().configureEach {
  23. // TODO run tests both with and without experimental span attributes
  24. jvmArgs("-Dotel.instrumentation.rabbitmq.experimental-span-attributes=true")
  25. jvmArgs("-Dotel.instrumentation.messaging.experimental.receive-telemetry.enabled=true")
  26. usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
  27. }