38 lines
975 B
Plaintext
38 lines
975 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)
|
|
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
|
|
}
|
|
}
|
|
|
|
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")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|