build.gradle.kts 945 B

123456789101112131415161718192021222324252627282930
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("io.lettuce")
  7. module.set("lettuce-core")
  8. versions.set("[5.0.0.RELEASE,5.1.0.RELEASE)")
  9. assertInverse.set(true)
  10. }
  11. }
  12. dependencies {
  13. library("io.lettuce:lettuce-core:5.0.0.RELEASE")
  14. implementation(project(":instrumentation:lettuce:lettuce-common:library"))
  15. testImplementation("io.lettuce:lettuce-core:5.0.0.RELEASE")
  16. testInstrumentation(project(":instrumentation:reactor:reactor-3.1:javaagent"))
  17. latestDepTestLibrary("io.lettuce:lettuce-core:5.0.+") // see lettuce-5.1 module
  18. }
  19. tasks.withType<Test>().configureEach {
  20. // TODO run tests both with and without experimental span attributes
  21. jvmArgs("-Dotel.instrumentation.lettuce.experimental-span-attributes=true")
  22. jvmArgs("-Dotel.instrumentation.lettuce.connection-telemetry.enabled=true")
  23. usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
  24. }