opentelemetry-java-instrume.../instrumentation/grpc-1.6/testing/grpc-1.6-testing.gradle

39 lines
920 B
Groovy

plugins {
id "java-library"
id "com.google.protobuf" version "0.8.16"
}
apply plugin: "otel.java-conventions"
def grpcVersion = '1.6.0'
protobuf {
protoc {
// Download compiler rather than using locally installed version:
artifact = 'com.google.protobuf:protoc:3.3.0'
}
plugins {
grpc { artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}" }
}
generateProtoTasks {
all()*.plugins { grpc {} }
}
}
dependencies {
api project(':testing-common')
api "io.grpc:grpc-core:${grpcVersion}"
api "io.grpc:grpc-protobuf:${grpcVersion}"
api "io.grpc:grpc-services:${grpcVersion}"
api "io.grpc:grpc-stub:${grpcVersion}"
implementation "javax.annotation:javax.annotation-api:1.3.2"
implementation "com.google.guava:guava"
implementation "org.codehaus.groovy:groovy-all"
implementation "io.opentelemetry:opentelemetry-api"
implementation "org.spockframework:spock-core"
}