build.gradle.kts 817 B

123456789101112131415161718192021222324252627282930313233
  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. implementation("org.codehaus.groovy:groovy-all")
  15. implementation("io.opentelemetry:opentelemetry-api")
  16. implementation("org.spockframework:spock-core")
  17. }
  18. tasks {
  19. compileJava {
  20. with(options) {
  21. // We generate stubs using an old version of protobuf to test old versions of gRPC,
  22. // where this lint error triggers.
  23. compilerArgs.add("-Xlint:-cast")
  24. }
  25. }
  26. }