build.gradle.kts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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. // since reactor-rabbitmq:1.5.4 there is only a runtime dependency to reactor-core but spock
  22. // needs it at compile time
  23. testCompileOnly("io.projectreactor:reactor-core:3.4.12")
  24. }
  25. tasks.withType<Test>().configureEach {
  26. // TODO run tests both with and without experimental span attributes
  27. jvmArgs("-Dotel.instrumentation.rabbitmq.experimental-span-attributes=true")
  28. usesService(gradle.sharedServices.registrations["testcontainersBuildService"].getService())
  29. }