Skip to content

refactor!: stop auto-running vaadinPrepareFrontend in development mode#24119

Merged
mcollovati merged 1 commit intomainfrom
issues/24108-prevent_automatic_run_of_prepareFrontendTask
Apr 15, 2026
Merged

refactor!: stop auto-running vaadinPrepareFrontend in development mode#24119
mcollovati merged 1 commit intomainfrom
issues/24108-prevent_automatic_run_of_prepareFrontendTask

Conversation

@mcollovati
Copy link
Copy Markdown
Collaborator

IDE-triggered Gradle builds (e.g. IntelliJ compiling on file change) were running vaadinPrepareFrontend via processResources, which interfered with the running Vite dev server and broke hotdeploy.

Since Vaadin 25, the dev server handles frontend preparation at runtime, so the task no longer needs to run automatically. The previous behavior can be restored by setting alwaysExecutePrepareFrontend = true.

Fixes #24108

IDE-triggered Gradle builds (e.g. IntelliJ compiling on file change)
were running `vaadinPrepareFrontend` via `processResources`, which
interfered with the running Vite dev server and broke hotdeploy.

Since Vaadin 25, the dev server handles frontend preparation at runtime,
so the task no longer needs to run automatically. The previous behavior
can be restored by setting `alwaysExecutePrepareFrontend = true`.

Fixes #24108
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

Test Results

 1 391 files  ±0   1 391 suites  ±0   1h 15m 40s ⏱️ + 1m 7s
 9 997 tests ±0   9 926 ✅ ±0  71 💤 ±0  0 ❌ ±0 
10 472 runs  ±0  10 392 ✅ ±0  80 💤 ±0  0 ❌ ±0 

Results for commit 11f32c6. ± Comparison against base commit 9f34b7a.

@mcollovati mcollovati added this pull request to the merge queue Apr 15, 2026
Merged via the queue into main with commit beaed7c Apr 15, 2026
31 checks passed
@mcollovati mcollovati deleted the issues/24108-prevent_automatic_run_of_prepareFrontendTask branch April 15, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hotdeploy in a Gradle-based Spring Boot project fails

2 participants