-
Notifications
You must be signed in to change notification settings - Fork 858
/
Copy pathbuild.gradle.kts
81 lines (68 loc) · 2.22 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
plugins {
id("otel.protobuf-conventions")
id("otel.publish-conventions")
id("otel.animalsniffer-conventions")
id("com.squareup.wire")
}
description = "OpenTelemetry - Jaeger Remote sampler"
otelJava.moduleName.set("io.opentelemetry.sdk.extension.trace.jaeger")
dependencies {
api(project(":sdk:all"))
compileOnly(project(":sdk-extensions:autoconfigure"))
compileOnly(project(":sdk-extensions:incubator"))
implementation(project(":sdk:all"))
implementation(project(":exporters:common"))
implementation(project(":exporters:sender:okhttp"))
implementation("com.squareup.okhttp3:okhttp")
compileOnly("io.grpc:grpc-api")
compileOnly("io.grpc:grpc-protobuf")
compileOnly("io.grpc:grpc-stub")
testImplementation(project(":sdk:testing"))
testImplementation(project(":sdk-extensions:autoconfigure"))
testImplementation("com.google.guava:guava")
testImplementation("com.google.protobuf:protobuf-java")
testImplementation("com.linecorp.armeria:armeria-junit5")
testImplementation("com.linecorp.armeria:armeria-grpc-protocol")
testImplementation("org.testcontainers:junit-jupiter")
}
testing {
suites {
register<JvmTestSuite>("testGrpcNetty") {
dependencies {
implementation(project(":sdk:testing"))
implementation(project(":exporters:common"))
implementation("com.google.protobuf:protobuf-java")
implementation("com.linecorp.armeria:armeria-junit5")
implementation("com.linecorp.armeria:armeria-grpc-protocol")
implementation("org.testcontainers:junit-jupiter")
implementation("io.grpc:grpc-netty")
implementation("io.grpc:grpc-stub")
}
}
}
}
afterEvaluate {
// Classpath when compiling testGrpcNetty, we add dependency management directly
// since it doesn't follow Gradle conventions of naming / properties.
dependencies {
add("testGrpcNettyCompileProtoPath", platform(project(":dependencyManagement")))
}
}
tasks {
check {
dependsOn(testing.suites)
}
}
wire {
custom {
schemaHandlerFactoryClass = "io.opentelemetry.gradle.ProtoFieldsWireHandlerFactory"
}
}
tasks {
compileJava {
with(options) {
// Generated code so can't control serialization.
compilerArgs.add("-Xlint:-serial")
}
}
}