Skip to content

Commit

Permalink
Add a note when Quarkus in-container build is used as fallback strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
jprinet committed Oct 19, 2023
1 parent 699307d commit b66b521
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions quarkus-build-caching-extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ Only the *native*, *uber-jar*, *jar* and *legacy-jar* [packaging types](https://
The native packaging is cacheable only if the in-container build strategy (`quarkus.native.container-build=true`) is configured along with a fixed build image (`quarkus.native.builder-image`).
This in-container build strategy means the build is as reproducible as possible. Even so, some timestamps and instruction ordering may be different even when built on the same system in the same environment.

**Note:**
*When the in-container build strategy is used as a fallback due to GraalVM requirements not met for instance, the caching feature will still be disabled. The recommendation is to explicitly set the in-container strategy (`quarkus.native.container-build=true`) to benefit from caching.*

The Quarkus build goal is made not cacheable if the `.quarkus/quarkus-prod-config-dump` file is not present or if a Quarkus property was changed since the last build execution (or after cloning the repository if no local build yet happened).

## Application
Expand Down

0 comments on commit b66b521

Please sign in to comment.