build.gradle.kts 930 B

12345678910111213141516171819202122232425262728293031323334353637
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("io.grpc")
  7. module.set("grpc-core")
  8. versions.set("[1.6.0,)")
  9. assertInverse.set(true)
  10. }
  11. }
  12. val grpcVersion = "1.6.0"
  13. dependencies {
  14. implementation(project(":instrumentation:grpc-1.6:library"))
  15. library("io.grpc:grpc-core:$grpcVersion")
  16. testInstrumentation(project(":instrumentation:netty:netty-4.1:javaagent"))
  17. testLibrary("io.grpc:grpc-netty:$grpcVersion")
  18. testLibrary("io.grpc:grpc-protobuf:$grpcVersion")
  19. testLibrary("io.grpc:grpc-services:$grpcVersion")
  20. testLibrary("io.grpc:grpc-stub:$grpcVersion")
  21. testImplementation(project(":instrumentation:grpc-1.6:testing"))
  22. }
  23. tasks {
  24. test {
  25. // The agent context debug mechanism isn't compatible with the bridge approach which may add a
  26. // gRPC context to the root.
  27. jvmArgs("-Dotel.javaagent.experimental.thread-propagation-debugger.enabled=false")
  28. }
  29. }