build.gradle.kts 883 B

123456789101112131415161718192021222324252627282930313233343536
  1. plugins {
  2. id("otel.library-instrumentation")
  3. id("otel.animalsniffer-conventions")
  4. }
  5. val grpcVersion = "1.6.0"
  6. dependencies {
  7. library("io.grpc:grpc-core:$grpcVersion")
  8. testLibrary("io.grpc:grpc-netty:$grpcVersion")
  9. testLibrary("io.grpc:grpc-protobuf:$grpcVersion")
  10. testLibrary("io.grpc:grpc-services:$grpcVersion")
  11. testLibrary("io.grpc:grpc-stub:$grpcVersion")
  12. testImplementation(project(":instrumentation:grpc-1.6:testing"))
  13. }
  14. tasks {
  15. test {
  16. systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
  17. }
  18. }
  19. if (!(findProperty("testLatestDeps") as Boolean)) {
  20. configurations.testRuntimeClasspath {
  21. resolutionStrategy {
  22. eachDependency {
  23. // early versions of grpc are not compatible with netty 4.1.101.Final
  24. if (requested.group == "io.netty") {
  25. useVersion("4.1.100.Final")
  26. }
  27. }
  28. }
  29. }
  30. }