Commit bf3b185
fix(ci): downgrade junit-jupiter for btrace-core's pre-17 V2 protocol test runs
v2-protocol-tests.yml compiles/runs :btrace-core:test against JDK 8/11/17/21
toolchains via -PtestJavaVersion, added because Gradle itself needs JVM 17+
but the wire protocol still needs verifying on older JDKs.
junit-jupiter 6.x requires JDK 17+ to resolve against, so the JDK 11 leg
failed at compileTestJava. btrace-agent hit the same issue and fixed it by
forcing junit-jupiter to 5.14.4, but btrace-core also imports the JUnit BOM
(platform(libs.junit)), which re-pins every org.junit.jupiter/org.junit.platform
artifact — including transitive ones like junit-platform-commons — back to
6.x, so forcing just the aggregator coordinate wasn't enough here. Use an
eachDependency rule to downgrade the whole junit-jupiter/junit-platform
family when testJavaVersion < 17.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 3e1dd34 commit bf3b185
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
76 | 94 | | |
77 | 95 | | |
78 | 96 | | |
| |||
0 commit comments