Describe your motivation
vaadin-dev mode brings in dependencies that are not available during production deployments. Especially the commonly used ones may be rather confusing during the upgrades as they are still "OK" by IDE and build tools as they are now declared optional (and runtime dependencies to the same artifacts were dropped in the V25 cleanup).
Example code:
@Route
public class MainView extends VerticalLayout {
public MainView() {
// Basic SB + Vaadin 25.0.0-rc2
add(org.apache.commons.lang3.StringUtils.capitalize("This works in dev mode only"));
}
}
The most problematic ones highlighted here:
Additional context
Copilot is already shading at least one of the same deps.