-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
67 lines (59 loc) · 2.15 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
plugins {
id("otel.javaagent-instrumentation")
}
muzzle {
pass {
coreJdk()
}
}
dependencies {
compileOnly("com.google.auto.value:auto-value-annotations")
annotationProcessor("com.google.auto.value:auto-value")
compileOnly(project(":javaagent-tooling"))
testImplementation("com.newrelic.agent.java:newrelic-api:5.14.0")
testImplementation("io.opentracing.contrib.dropwizard:dropwizard-opentracing:0.2.2") {
isTransitive = false
}
testImplementation("com.datadoghq:dd-trace-api:1.43.0")
testImplementation("com.signalfx.public:signalfx-trace-api:0.48.0-sfx8")
// Old and new versions of kamon use different packages for Trace annotation
testImplementation("io.kamon:kamon-annotation_2.11:0.6.7") {
isTransitive = false
}
testImplementation("io.kamon:kamon-annotation-api:2.1.4")
testImplementation("com.appoptics.agent.java:appoptics-sdk:6.20.1")
testImplementation("com.tracelytics.agent.java:tracelytics-api:5.0.10")
testImplementation("org.springframework.cloud:spring-cloud-sleuth-core:2.2.4.RELEASE") {
isTransitive = false
}
// For some annotations used by sleuth
testCompileOnly("org.springframework:spring-core:4.3.30.RELEASE")
}
tasks {
val testIncludeProperty by registering(Test::class) {
filter {
includeTestsMatching("ConfiguredTraceAnnotationsTest")
}
include("**/ConfiguredTraceAnnotationsTest.*")
jvmArgs("-Dotel.instrumentation.external-annotations.include=io.opentelemetry.javaagent.instrumentation.extannotations.OuterClass\$InterestingMethod")
}
val testExcludeMethodsProperty by registering(Test::class) {
filter {
includeTestsMatching("TracedMethodsExclusionTest")
}
include("**/TracedMethodsExclusionTest.*")
jvmArgs(
"-Dotel.instrumentation.external-annotations.exclude-methods=io.opentelemetry.javaagent.instrumentation.extannotations.TracedMethodsExclusionTest\$TestClass[excluded,annotatedButExcluded]"
)
}
test {
filter {
excludeTestsMatching("ConfiguredTraceAnnotationsTest")
excludeTestsMatching("TracedMethodsExclusionTest")
}
}
check {
dependsOn(testIncludeProperty)
dependsOn(testExcludeMethodsProperty)
}
}