Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 561af94

Browse files
committed
Document the latest options
1 parent d9dd84f commit 561af94

File tree

2 files changed

+10
-0
lines changed
  • spring-graalvm-native-docs/src/main/asciidoc
  • spring-graalvm-native-samples/actuator-webflux

2 files changed

+10
-0
lines changed

spring-graalvm-native-docs/src/main/asciidoc/options.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ See the <<troubleshooting>> section for more details on this.
8181

8282
* `-Dspring.native.fail-on-version-check=false` disables failure on Spring Boot version check.
8383

84+
* `-Dspring.native.factories.no-actuator-metrics=true` disables inclusion of metrics related actuator infrastructure when importing the actuator starter. Large reduction in memory usage with this turned on (obviously only usable if the application does not require that infrastructure).
85+
86+
* `-Dspring.native.build-time-properties-checks=` switches on build time evaluation of some configuration conditions related to properties. It must include at least an initial setting of `default-include-all` or `default-exclude-all` and that may be followed
87+
by a comma separated list of prefixes to explicitly include or exclude (for example `=default-include-all,!spring.dont.include.these.,!or.these` or `=default-exclude-all,spring.include.this.one.though.,and.this.one`). When considering a property the
88+
longest matching prefix in this setting will apply (in cases where a property matches multiple prefixes).
89+
90+
* `-Dspring.native.build-time-properties-match-if-missing=false` means for any properties specifying `matchIfMissing=true` that will be overridden and not respected. This does flip the application into a mode where it needs to be much more explicit
91+
about specifying properties that activate configurations. (This is a work in dev option really for experimenting with image size vs explicit property trade offs).
92+
8493
=== Other options
8594

8695
* `--enable-all-security-services` required for HTTPS and crypto.

spring-graalvm-native-samples/actuator-webflux/compile.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ echo "Compiling $ARTIFACT with $GRAALVM_VERSION"
3030
-H:Name=$ARTIFACT \
3131
-Dspring.spel.ignore=true \
3232
-Dspring.native.build-time-properties-checks=default-include-all \
33+
-Dspring.native.build-time-properties-match-if-missing=false \
3334
-Dspring.native.factories.no-actuator-metrics=true \
3435
-Dspring.native.remove-yaml-support=true \
3536
-cp $CP $MAINCLASS >> output.txt ; } 2>> output.txt

0 commit comments

Comments
 (0)