opentelemetry-java-instrume.../instrumentation/grpc-1.6/library/build.gradle.kts

37 lines
883 B
Plaintext

plugins {
id("otel.library-instrumentation")
id("otel.animalsniffer-conventions")
}
val grpcVersion = "1.6.0"
dependencies {
library("io.grpc:grpc-core:$grpcVersion")
testLibrary("io.grpc:grpc-netty:$grpcVersion")
testLibrary("io.grpc:grpc-protobuf:$grpcVersion")
testLibrary("io.grpc:grpc-services:$grpcVersion")
testLibrary("io.grpc:grpc-stub:$grpcVersion")
testImplementation(project(":instrumentation:grpc-1.6:testing"))
}
tasks {
test {
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
}
}
if (!(findProperty("testLatestDeps") as Boolean)) {
configurations.testRuntimeClasspath {
resolutionStrategy {
eachDependency {
// early versions of grpc are not compatible with netty 4.1.101.Final
if (requested.group == "io.netty") {
useVersion("4.1.100.Final")
}
}
}
}
}