Skip to content

Dependencies utilized via vaadin-dev should be shaded into custom namespace #23007

@mstahv

Description

@mstahv

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:

Image

Additional context

Copilot is already shading at least one of the same deps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Work In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions