Skip to content

Commit e678a1f

Browse files
committed
[native-build-tools-7h1.11] Docs: Changelog entry
Add Unreleased feature: Auto-fallback to JVM JUnit when -H:+CompatibilityMode is enabled. Details: - Disables native-image JUnit when the flag is present; JVM tests run automatically. - Detection via build arguments and NATIVE_IMAGE_OPTIONS env var. - Gradle: gate JUnit wiring, skip native test build/run via onlyIf, once-per-build info log. - Maven: short-circuit native test goal after environment setup, once-per-build info log. - Default behavior unchanged when flag is absent.
1 parent 744b32e commit e678a1f

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

docs/src/docs/asciidoc/changelog.adoc

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
[[changelog]]
22
== Changelog
33

4+
== Unreleased
5+
6+
- Feature – Auto-fallback to JVM JUnit when -H:+CompatibilityMode is enabled
7+
+
8+
* When -H:+CompatibilityMode is present in native-image options, native-image JUnit tests are disabled and JVM tests run automatically.
9+
* Detection sources: native-image build arguments and NATIVE_IMAGE_OPTIONS environment variable.
10+
* Gradle: test image wiring for the native JUnit launcher and JUnit Platform feature is gated; native test image build/run tasks are skipped via onlyIf; once-per-build log:
11+
+
12+
“Compatibility Mode detected (-H:+CompatibilityMode); skipping native-image test build/run, JVM tests will run instead.”
13+
* Maven: native test goal short-circuits after environment setup; once-per-build log:
14+
+
15+
“Compatibility Mode detected (-H:+CompatibilityMode); skipping native-image test goal, JVM tests will run instead.”
16+
* Default behavior unchanged when the flag is absent (native-image JUnit path continues as before).
17+
* See plugin READMEs for details.
18+
419
== Release 0.11.3
520

621
- Fixed use of argument file when the temporary directory is not on the same drive as the project
@@ -449,7 +464,6 @@ graalvmNative {
449464
}
450465
}
451466
----
452-
453467
- The `nativeBuild` task has been renamed to `nativeCompile`.
454468
- The `nativeTestBuild` task has been renamed to `nativeTestCompile`.
455469

0 commit comments

Comments
 (0)