Skip to content

Commit c353420

Browse files
vaadin-botcaalador
andauthored
fix: change build-frontend goal phase (#13360) (#13375)
Change the build-frontend goal defaultPhase from prepare-package to process-classes. This will make it so that if defined the build task will also be executed for server run. Fixes #13349 Co-authored-by: caalador <mikael.grankvist@vaadin.com>
1 parent bc67ae4 commit c353420

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎flow-plugins/flow-gradle-plugin/src/main/kotlin/com/vaadin/gradle/VaadinBuildFrontendTask.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public open class VaadinBuildFrontendTask : DefaultTask() {
4444

4545
// we need the flow-build-info.json to be created, which is what the vaadinPrepareFrontend task does
4646
dependsOn("vaadinPrepareFrontend")
47-
// Maven's task run in the LifecyclePhase.PREPARE_PACKAGE phase
47+
// Maven's task run in the LifecyclePhase.PROCESS_CLASSES phase
4848

4949
// We need access to the produced classes, to be able to analyze e.g.
5050
// @CssImport annotations used by the project.

‎flow-plugins/flow-maven-plugin/src/main/java/com/vaadin/flow/plugin/maven/BuildFrontendMojo.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
*
5555
* @since 2.0
5656
*/
57-
@Mojo(name = "build-frontend", requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, defaultPhase = LifecyclePhase.PREPARE_PACKAGE)
57+
@Mojo(name = "build-frontend", requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, defaultPhase = LifecyclePhase.PROCESS_CLASSES)
5858
public class BuildFrontendMojo extends FlowModeAbstractMojo
5959
implements PluginAdapterBuild {
6060

0 commit comments

Comments
 (0)