feat: BuildFrontend Incremental build#23884
Conversation
Add incremental build to the buildFrontend task. Closes #17354
mcollovati
left a comment
There was a problem hiding this comment.
Would it be possible to add a couple of tests in MiscSingleModuleTest (similar to prepareFrontendIncrementalBuilds_featureEnabled and related) to ensure that a frontend build is performed only if an input change is detected or if the build is explicitly forced by the new alwaysExecuteBuildFrontend flag?
Also, do we need to take configuration cache into account, like in VaadinSmokeTest.testPrepareFrontend_configurationCache?
|
Added tests. |
BuildFrontend can not cache configurations as it uses the Project Object as execution time which is not allowed for caching configuration.
do not use prod bundle as the version is set to 1111.5.0-SNAPSHOT or the like
flow-plugins/flow-gradle-plugin/src/main/kotlin/com/vaadin/gradle/VaadinBuildFrontendTask.kt
Show resolved
Hide resolved
flow-plugins/flow-gradle-plugin/src/main/kotlin/com/vaadin/gradle/VaadinBuildFrontendTask.kt
Outdated
Show resolved
Hide resolved
...plugins/flow-gradle-plugin/src/main/kotlin/com/vaadin/gradle/BuildFrontendInputProperties.kt
Show resolved
Hide resolved
flow-plugins/flow-gradle-plugin/src/main/kotlin/com/vaadin/gradle/VaadinBuildFrontendTask.kt
Outdated
Show resolved
Hide resolved
flow-plugins/flow-gradle-plugin/src/main/kotlin/com/vaadin/gradle/VaadinBuildFrontendTask.kt
Outdated
Show resolved
Hide resolved
flow-plugins/flow-gradle-plugin/src/main/kotlin/com/vaadin/gradle/VaadinBuildFrontendTask.kt
Outdated
Show resolved
Hide resolved
Fix WEBPACK to VITE
|
Add incremental build to the buildFrontend task. Closes #17354
|
Hi @caalador and @mcollovati, when i performed cherry-pick to this commit to 24.10, i have encountered the following issue. Can you take a look and pick it manually? |
Add incremental build to the buildFrontend task. Closes #17354
|
Hi @caalador and @mcollovati, when i performed cherry-pick to this commit to 24.9, i have encountered the following issue. Can you take a look and pick it manually? |



Add incremental build to the
buildFrontend task.
Closes #17354