Skip to content

Conversation

tltv
Copy link
Member

@tltv tltv commented Oct 7, 2025

Cleans up Maven build configuration by removing need for production profile. Updates Maven build configuration to run build-frontend goal by default on package phase. With help of spring-boot-maven-plugin feature, includeOptional=false, vaadin-dev dependency is not included in production package.

Part of vaadin/flow#22439

WIP NOTICE: Requires Spring Boot 4.0.0-SNAPSHOT and running requires Flow compatibility.

Cleans up Maven build configuration by removing need for production profile. Updates Maven build configuration to run build-frontend goal by default on package phase. With help of spring-boot-maven-plugin feature, includeOptional=false, vaadin-dev dependency is not included in production package.

Part of vaadin/flow#22439
@mshabarov
Copy link
Contributor

mshabarov commented Oct 8, 2025

Also would need README update to reflect this approach.

<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!-- Set false to exclude optional dependencies like vaadin-dev. -->
<includeOptional>false</includeOptional>
Copy link

@knoobie knoobie Oct 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General question: is the other PR of spring that automatically excludes development-tool(s) not better suited if applicable? This would reduce the need for users to customize their spring plugin if Vaadin Dev is automatically removed from the created artefact

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that works as expected, we could also remove need for adding vaadin-dev explicitly as a optional dependency. It's worth to explore that more, hopefully it can be used without braking change (beta release is coming soon), but this includeOptional alone achieves the goal to remove need of production profile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants