Skip to content

Commit 62f4162

Browse files
Fix java version for JUnit 5.8 latest tests
1 parent 0782d95 commit 62f4162

File tree

1 file changed

+11
-0
lines changed
  • dd-java-agent/instrumentation/junit-5.3/junit-5.8

1 file changed

+11
-0
lines changed

dd-java-agent/instrumentation/junit-5.3/junit-5.8/build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ muzzle {
2323
}
2424
}
2525

26+
ext {
27+
latestDepTestMinJavaVersionForTests = JavaVersion.VERSION_17
28+
}
29+
2630
addTestSuiteForDir('latestDepTest', 'test')
2731

2832
dependencies {
@@ -52,3 +56,10 @@ configurations.matching({ it.name.startsWith('test') }).each({
5256
force group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: '5.12.0'
5357
}
5458
})
59+
60+
tasks.named("compileLatestDepTestJava").configure {
61+
setJavaVersion(it, 17)
62+
sourceCompatibility = JavaVersion.VERSION_1_8
63+
targetCompatibility = JavaVersion.VERSION_1_8
64+
}
65+

0 commit comments

Comments
 (0)