-
Notifications
You must be signed in to change notification settings - Fork 839
/
build.gradle.kts
58 lines (51 loc) · 1.68 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
plugins {
id("otel.javaagent-instrumentation")
}
muzzle {
pass {
group.set("ch.qos.logback")
module.set("logback-classic")
versions.set("[0.9.16,)")
skip("0.9.6") // has dependency on SNAPSHOT org.slf4j:slf4j-api:1.4.0-SNAPSHOT
skip("0.8") // has dependency on non-existent org.slf4j:slf4j-api:1.1.0-RC0
skip("0.6") // has dependency on pom only javax.jms:jms:1.1
assertInverse.set(true)
}
}
dependencies {
// pin the version strictly to avoid overriding by dependencyManagement versions
compileOnly("ch.qos.logback:logback-classic") {
version {
strictly("1.0.0")
}
}
compileOnly("org.slf4j:slf4j-api") {
version {
strictly("1.5.8")
}
}
if (findProperty("testLatestDeps") as Boolean) {
testImplementation("ch.qos.logback:logback-classic:+")
} else {
testImplementation("ch.qos.logback:logback-classic") {
version {
strictly("1.0.0")
}
}
testImplementation("org.slf4j:slf4j-api") {
version {
strictly("1.7.36")
}
}
}
compileOnly(project(":javaagent-bootstrap"))
implementation(project(":instrumentation:logback:logback-appender-1.0:library"))
testImplementation("org.awaitility:awaitility")
}
tasks.withType<Test>().configureEach {
// TODO run tests both with and without experimental log attributes
jvmArgs("-Dotel.instrumentation.logback-appender.experimental.capture-mdc-attributes=*")
jvmArgs("-Dotel.instrumentation.logback-appender.experimental-log-attributes=true")
jvmArgs("-Dotel.instrumentation.logback-appender.experimental.capture-code-attributes=true")
jvmArgs("-Dotel.instrumentation.logback-appender.experimental.capture-marker-attribute=true")
}