Skip to content

Commit

Permalink
Fixes the issue that nativeTest cannot be executed using Junit 5.11.0-M2
Browse files Browse the repository at this point in the history
  • Loading branch information
linghengqian committed Jun 14, 2024
1 parent fb962b9 commit 419e583
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-native-gradle-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
github-token: ${{ inputs.github-token }}
set-java-home: 'false'
- name: "❓ Check and test the plugin"
run: ./gradlew :native-gradle-plugin:functionalTest
run: ./gradlew :native-gradle-plugin:functionalTest --no-configuration-cache
- name: "📜 Upload functional tests results"
if: always()
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .sdkmanrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
java=22.2.r11-grl
java=17.0.11-graal
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public void onLoad(NativeImageConfiguration config) {
"org.junit.platform.engine.UniqueIdFormat",
"org.junit.platform.commons.util.ReflectionUtils",
// https://github.com/graalvm/native-build-tools/issues/300
"org.junit.platform.reporting.open.xml.OpenTestReportGeneratingListener"
"org.junit.platform.reporting.open.xml.OpenTestReportGeneratingListener",
// https://github.com/graalvm/native-build-tools/issues/602
"org.junit.platform.commons.util.LruCache"
);

if (getMajorJDKVersion() >= 21) {
Expand Down

0 comments on commit 419e583

Please sign in to comment.