build.gradle.kts 757 B

1234567891011121314151617181920212223242526272829303132
  1. plugins {
  2. id("otel.java-conventions")
  3. id("otel.protobuf-conventions")
  4. }
  5. val grpcVersion = "1.6.0"
  6. dependencies {
  7. api(project(":testing-common"))
  8. api("io.grpc:grpc-core:$grpcVersion")
  9. api("io.grpc:grpc-protobuf:$grpcVersion")
  10. api("io.grpc:grpc-services:$grpcVersion")
  11. api("io.grpc:grpc-stub:$grpcVersion")
  12. implementation("javax.annotation:javax.annotation-api:1.3.2")
  13. implementation("com.google.guava:guava")
  14. api("org.junit-pioneer:junit-pioneer")
  15. implementation("io.opentelemetry:opentelemetry-api")
  16. }
  17. tasks {
  18. compileJava {
  19. with(options) {
  20. // We generate stubs using an old version of protobuf to test old versions of gRPC,
  21. // where this lint error triggers.
  22. compilerArgs.add("-Xlint:-cast")
  23. }
  24. }
  25. }