Vaadin Flow does license checking for product vaadin-commercial-cc-client only when it spots any commercial component in the project, which is wrong, as a project can fairly be an open source project that is deployed with Control Center.
Instead, Flow should:
[ ] check this product for the apps that have no commercial products
[ ] check this product only when com.vaadin:control-center-starter dependency is present in the classpath, e.g. by checking Class::forName for some Java class in this artifact.
This would make a call to server when it's really needed.
Expected behavior
Flow should check this product for open source apps.
Description of the bug
Vaadin Flow does license checking for product
vaadin-commercial-cc-client
only when it spots any commercial component in the project, which is wrong, as a project can fairly be an open source project that is deployed with Control Center.Instead, Flow should:
com.vaadin:control-center-starter
dependency is present in the classpath, e.g. by checkingClass::forName
for some Java class in this artifact.This would make a call to server when it's really needed.
Expected behavior
Flow should check this product for open source apps.
Minimal reproducible example
to a spring skeleton starter
Versions