build.gradle.kts 811 B

123456789101112131415161718192021222324252627282930
  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. testLibrary("org.springframework.amqp:spring-rabbit:1.1.0.RELEASE") {
  15. exclude("com.rabbitmq", "amqp-client")
  16. }
  17. testInstrumentation(project(":instrumentation:reactor-3.1:javaagent"))
  18. testLibrary("io.projectreactor.rabbitmq:reactor-rabbitmq:1.0.0.RELEASE")
  19. }
  20. tasks.withType<Test>().configureEach {
  21. // TODO run tests both with and without experimental span attributes
  22. jvmArgs("-Dotel.instrumentation.rabbitmq.experimental-span-attributes=true")
  23. usesService(gradle.sharedServices.registrations["testcontainersBuildService"].getService())
  24. }