File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,10 @@ dependencies {
6464 because(" Jimfs is used in src/test/java" )
6565 }
6666
67- testRuntimeOnly(libs.jfrPolyfill) {
68- because(" OpenJ9 does not include JFR" )
67+ if (java.toolchain.implementation.orNull == JvmImplementation .J9 ) {
68+ testRuntimeOnly(libs.jfrPolyfill) {
69+ because(" OpenJ9 does not include JFR" )
70+ }
6971 }
7072
7173 standaloneConsoleLauncher(projects.junitPlatformConsoleStandalone)
Original file line number Diff line number Diff line change @@ -9,7 +9,12 @@ dependencies {
99 api(projects.junitPlatformLauncher)
1010
1111 compileOnlyApi(libs.apiguardian)
12- compileOnly(libs.jfrPolyfill)
12+
13+ if (java.toolchain.implementation.orNull == JvmImplementation .J9 ) {
14+ compileOnly(libs.jfrPolyfill) {
15+ because(" OpenJ9 does not include JFR" )
16+ }
17+ }
1318
1419 osgiVerification(projects.junitJupiterEngine)
1520 osgiVerification(projects.junitPlatformLauncher)
You can’t perform that action at this time.
0 commit comments