Skip to content

Commit 7379810

Browse files
author
Mateusz Rzeszutek
authored
Fix jboss-logmanager latestDepTest (open-telemetry#8993)
1 parent f52ce2c commit 7379810

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

instrumentation/jboss-logmanager/jboss-logmanager-appender-1.1/javaagent/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ dependencies {
2222
testImplementation("org.awaitility:awaitility")
2323
}
2424

25+
val latestDepTest = findProperty("testLatestDeps") as Boolean
26+
27+
if (latestDepTest) {
28+
otelJava {
29+
minJavaVersionSupported.set(JavaVersion.VERSION_11)
30+
}
31+
}
32+
2533
tasks.withType<Test>().configureEach {
2634
// TODO run tests both with and without experimental log attributes
2735
jvmArgs("-Dotel.instrumentation.jboss-logmanager.experimental.capture-mdc-attributes=*")

instrumentation/jboss-logmanager/jboss-logmanager-mdc-1.1/javaagent/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,11 @@ muzzle {
1414
dependencies {
1515
library("org.jboss.logmanager:jboss-logmanager:1.1.0.GA")
1616
}
17+
18+
val latestDepTest = findProperty("testLatestDeps") as Boolean
19+
20+
if (latestDepTest) {
21+
otelJava {
22+
minJavaVersionSupported.set(JavaVersion.VERSION_11)
23+
}
24+
}

0 commit comments

Comments
 (0)