build.gradle.kts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import com.google.protobuf.gradle.generateProtoTasks
  2. import com.google.protobuf.gradle.id
  3. import com.google.protobuf.gradle.plugins
  4. import com.google.protobuf.gradle.protobuf
  5. import com.google.protobuf.gradle.protoc
  6. plugins {
  7. id("otel.java-conventions")
  8. id("com.google.protobuf") version "0.8.16"
  9. }
  10. val grpcVersion = "1.6.0"
  11. protobuf {
  12. protoc {
  13. // Download compiler rather than using locally installed version:
  14. artifact = "com.google.protobuf:protoc:3.3.0"
  15. }
  16. plugins {
  17. id("grpc") {
  18. artifact = "io.grpc:protoc-gen-grpc-java:$grpcVersion"
  19. }
  20. }
  21. generateProtoTasks {
  22. all().configureEach {
  23. plugins {
  24. id("grpc")
  25. }
  26. }
  27. }
  28. }
  29. dependencies {
  30. api(project(":testing-common"))
  31. api("io.grpc:grpc-core:$grpcVersion")
  32. api("io.grpc:grpc-protobuf:$grpcVersion")
  33. api("io.grpc:grpc-services:$grpcVersion")
  34. api("io.grpc:grpc-stub:$grpcVersion")
  35. implementation("javax.annotation:javax.annotation-api:1.3.2")
  36. implementation("com.google.guava:guava")
  37. implementation("org.codehaus.groovy:groovy-all")
  38. implementation("io.opentelemetry:opentelemetry-api")
  39. implementation("org.spockframework:spock-core")
  40. }