-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
49 lines (43 loc) · 1.29 KB
/
build.gradle.kts
File metadata and controls
49 lines (43 loc) · 1.29 KB
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
plugins {
id("otel.javaagent-instrumentation")
}
muzzle {
fail {
group.set("commons-httpclient")
module.set("commons-httpclient")
versions.set("[,4.0)")
}
pass {
group.set("org.apache.httpcomponents")
module.set("httpclient")
versions.set("[4.0,)")
assertInverse.set(true)
}
pass {
// We want to support the dropwizard clients too.
group.set("io.dropwizard")
module.set("dropwizard-client")
versions.set("(,3.0.0)")
assertInverse.set(true)
}
}
dependencies {
library("org.apache.httpcomponents:httpclient:4.0")
testCompileOnly("net.jcip:jcip-annotations:1.0")
testInstrumentation(project(":instrumentation:apache-httpclient:apache-httpclient-2.0:javaagent"))
testInstrumentation(project(":instrumentation:apache-httpclient:apache-httpclient-5.0:javaagent"))
}
tasks {
withType<Test>().configureEach {
systemProperty("collectMetadata", otelProps.collectMetadata)
}
val testStableSemconv by registering(Test::class) {
testClassesDirs = sourceSets.test.get().output.classesDirs
classpath = sourceSets.test.get().runtimeClasspath
jvmArgs("-Dotel.semconv-stability.opt-in=service.peer")
systemProperty("metadataConfig", "otel.semconv-stability.opt-in=service.peer")
}
check {
dependsOn(testStableSemconv)
}
}