forked from open-telemetry/opentelemetry-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
74 lines (61 loc) · 1.45 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
plugins {
id("otel.java-conventions")
id("otel.publish-conventions")
id("otel.jmh-conventions")
id("otel.animalsniffer-conventions")
}
description = "OpenTelemetry Context (Incubator)"
otelJava.moduleName.set("io.opentelemetry.context")
dependencies {
// MustBeClosed
compileOnly("com.google.errorprone:error_prone_annotations")
testImplementation("com.google.guava:guava")
}
testing {
suites {
register<JvmTestSuite>("grpcInOtelTest") {
dependencies {
implementation("io.grpc:grpc-api")
}
}
register<JvmTestSuite>("otelInGrpcTest") {
dependencies {
implementation("io.grpc:grpc-api")
}
}
register<JvmTestSuite>("braveInOtelTest") {
dependencies {
implementation("io.zipkin.brave:brave")
}
}
register<JvmTestSuite>("otelInBraveTest") {
dependencies {
implementation("io.zipkin.brave:brave")
}
}
register<JvmTestSuite>("otelAsBraveTest") {
dependencies {
implementation("io.zipkin.brave:brave")
}
}
register<JvmTestSuite>("storageWrappersTest") {
}
register<JvmTestSuite>("strictContextEnabledTest") {
dependencies {
implementation(project(":api:all"))
}
targets {
all {
testTask.configure {
jvmArgs("-Dio.opentelemetry.context.enableStrictContext=true")
}
}
}
}
}
}
tasks {
check {
dependsOn(testing.suites)
}
}