build.gradle.kts 949 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. fail {
  6. group.set("redis.clients")
  7. module.set("jedis")
  8. versions.set("[,3.0.0)")
  9. // TODO: remove this once jedis people release the new version correctly
  10. skip("jedis-3.6.2")
  11. }
  12. pass {
  13. group.set("redis.clients")
  14. module.set("jedis")
  15. versions.set("[3.0.0,)")
  16. }
  17. }
  18. dependencies {
  19. library("redis.clients:jedis:3.0.0")
  20. compileOnly("com.google.auto.value:auto-value-annotations")
  21. annotationProcessor("com.google.auto.value:auto-value")
  22. // ensures jedis-1.4 instrumentation does not load with jedis 3.0+ by failing
  23. // the tests in the event it does. The tests will end up with double spans
  24. testInstrumentation(project(":instrumentation:jedis:jedis-1.4:javaagent"))
  25. testLibrary("redis.clients:jedis:3.+")
  26. }
  27. tasks {
  28. named<Test>("test") {
  29. usesService(gradle.sharedServices.registrations["testcontainersBuildService"].getService())
  30. }
  31. }