forked from open-telemetry/opentelemetry-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
68 lines (55 loc) · 2.01 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
import ru.vyarus.gradle.plugin.animalsniffer.AnimalSniffer
plugins {
id("otel.java-conventions")
id("otel.publish-conventions")
id("otel.jmh-conventions")
id("otel.animalsniffer-conventions")
}
description = "OpenTelemetry SDK For Tracing"
otelJava.moduleName.set("io.opentelemetry.sdk.trace")
sourceSets {
main {
val traceShadedDeps = project(":sdk:trace-shaded-deps")
output.dir(traceShadedDeps.file("build/extracted/shadow"), "builtBy" to ":sdk:trace-shaded-deps:extractShadowJar")
}
}
dependencies {
api(project(":api:all"))
api(project(":sdk:common"))
compileOnly(project(":sdk:trace-shaded-deps"))
implementation(project(":semconv"))
annotationProcessor("com.google.auto.value:auto-value")
testAnnotationProcessor("com.google.auto.value:auto-value")
testImplementation(project(":sdk:testing"))
testImplementation("com.google.guava:guava")
testImplementation("com.google.guava:guava-testlib")
jmh(project(":sdk:metrics"))
jmh(project(":sdk:testing")) {
// JMH doesn"t handle dependencies that are duplicated between the main and jmh
// configurations properly, but luckily here it"s simple enough to just exclude transitive
// dependencies.
isTransitive = false
}
jmh(project(":exporters:jaeger-thrift"))
jmh(project(":exporters:otlp:all")) {
// The opentelemetry-exporter-otlp depends on this project itself. So don't pull in
// the transitive dependencies.
isTransitive = false
}
// explicitly adding the opentelemetry-exporter-otlp dependencies
jmh(project(":exporters:otlp:common")) {
isTransitive = false
}
jmh("io.opentelemetry.proto:opentelemetry-proto")
jmh("com.google.guava:guava")
jmh("io.grpc:grpc-api")
jmh("io.grpc:grpc-netty-shaded")
jmh("org.testcontainers:testcontainers") // testContainer for OTLP collector
}
tasks {
withType<AnimalSniffer>().configureEach {
// We catch NoClassDefFoundError to fallback to non-jctools queues.
exclude("**/internal/shaded/jctools/**")
exclude("**/internal/JcTools*")
}
}