Skip to content

Commit 2ee0a26

Browse files
committed
Fixes the issue that nativeTest cannot be executed using Junit 5.11.0-M2
1 parent fb962b9 commit 2ee0a26

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/test-native-gradle-plugin.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
- name: "🔧 Install GraalVM (dev)"
9090
uses: graalvm/setup-graalvm@main
9191
with:
92-
java-version: 'dev'
92+
java-version: '23-ea'
9393
distribution: 'graalvm'
9494
github-token: ${{ inputs.github-token }}
9595
set-java-home: 'false'

.sdkmanrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Enable auto-env through the sdkman_auto_env config
22
# Add key=value pairs of SDKs to use below
3-
java=22.2.r11-grl
3+
java=17.0.11-graal

common/junit-platform-native/src/main/java/org/graalvm/junit/platform/config/platform/PlatformConfigProvider.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ public void onLoad(NativeImageConfiguration config) {
6060
"org.junit.platform.engine.UniqueIdFormat",
6161
"org.junit.platform.commons.util.ReflectionUtils",
6262
// https://github.com/graalvm/native-build-tools/issues/300
63-
"org.junit.platform.reporting.open.xml.OpenTestReportGeneratingListener"
63+
"org.junit.platform.reporting.open.xml.OpenTestReportGeneratingListener",
64+
// https://github.com/graalvm/native-build-tools/issues/602
65+
"org.junit.platform.commons.util.LruCache"
6466
);
6567

6668
if (getMajorJDKVersion() >= 21) {

0 commit comments

Comments
 (0)