You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Native Image is introducing support for layers that enable significantly better image-build time for the application.
We should introduce a single flag in build tools (incremental-build) to improve image-build time. This flag would be passed to the Gradle and Maven and would signify that:
The build tools will first build a layer of all application maven dependencies. Although the layer build takes longer than the application, we assume that the maven dependencies don't change often.
For each consecutive build, the build tools would only build the extension image from the classes that are edited by the user.
If there are changes in any of the dependencies, or the relevant flags that affect layers (e.g., the GC used) the base layer would be rebuilt.
Internally, the build tools would require a SHA-256 hash out of ordered JAR files that come from Maven and from all the flags that are passed to the image builder, Native Image version, and the platform. If any of these hashes are changed, the base layer would require a rebuild.
Expected outcome of this ticket is that an average user's turnaround is increased significantly as they will only build images from the application which should be a small subset of the whole binary.
The text was updated successfully, but these errors were encountered:
vjovanov
changed the title
Improve build time with Native Image layers
Introduce an incremental-build mode for Native Image via Native Image layers
Jul 22, 2024
Native Image is introducing support for layers that enable significantly better image-build time for the application.
We should introduce a single flag in build tools (
incremental-build
) to improve image-build time. This flag would be passed to the Gradle and Maven and would signify that:Internally, the build tools would require a SHA-256 hash out of ordered JAR files that come from Maven and from all the flags that are passed to the image builder, Native Image version, and the platform. If any of these hashes are changed, the base layer would require a rebuild.
Expected outcome of this ticket is that an average user's turnaround is increased significantly as they will only build images from the application which should be a small subset of the whole binary.
The text was updated successfully, but these errors were encountered: