You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With vaadin-core-14.9.x ServerInfo#fetchVaadinVersion only checks for "vaadin-versions.json" causing extra logging and no platform version in DevModeGizmo
#15236
Closed
lmorocz opened this issue
Nov 22, 2022
· 2 comments
Since #13749 there are two separate versions.json files for vaadin-core (vaadin-core-versions.json) and vaadin (vaadin-versions.json) maven artifacts.
Since v14.9.0 there is a com.vaadin.flow.internal.ServerInfo class with a fetchVaadinVersion method which in DEV mode tries to obtain the Vaadin platform version from vaadin-versions.json, but if you opt for the vaadin-core maven dependency then there is no such file, only a vaadin-core-versions.json in the vaadin-core module.
Because of this there is no platform version in DevModeGizmo and every time a new UI is created the Unable to determine version information. No vaadin_versions.json found INFO message appears with the com.vaadin.flow.internal.ServerInfo logger.
Expected behavior
In DEV mode with vaadin-core 14.9.2+ dependency there shouldn't be Unable to determine version information. No vaadin_versions.json found INFO message for com.vaadin.flow.internal.ServerInfo logger, and there should be a platform version in DevModeGizmo.
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<!-- Replace artifactId with vaadin-core to use only free components -->
<artifactId>vaadin</artifactId>
modify the vaadin artifactId to vaadin-core
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<!-- Replace artifactId with vaadin-core to use only free components -->
<artifactId>vaadin-core</artifactId>
Compile and start the app with mvn
Load http://localhost:8080 on any browser and check the logs for messages like this:
2022-11-22 10:54:25.887 INFO 11912 --- [nio-8080-exec-3] com.vaadin.flow.internal.ServerInfo : Unable to determine version information. No vaadin_versions.json found
Workaround
Use this configuration in your vaadin-core based Spring Boot application.properties to start without the DevModeGizmo and the new License Checker:
Description of the bug
Since #13749 there are two separate
versions.json
files forvaadin-core
(vaadin-core-versions.json
) andvaadin
(vaadin-versions.json
) maven artifacts.Since v14.9.0 there is a
com.vaadin.flow.internal.ServerInfo
class with afetchVaadinVersion
method which in DEV mode tries to obtain the Vaadin platform version fromvaadin-versions.json
, but if you opt for thevaadin-core
maven dependency then there is no such file, only avaadin-core-versions.json
in thevaadin-core
module.Because of this there is no platform version in DevModeGizmo and every time a new UI is created the
Unable to determine version information. No vaadin_versions.json found
INFO message appears with thecom.vaadin.flow.internal.ServerInfo
logger.Expected behavior
In DEV mode with vaadin-core 14.9.2+ dependency there shouldn't be
Unable to determine version information. No vaadin_versions.json found
INFO message forcom.vaadin.flow.internal.ServerInfo
logger, and there should be a platform version in DevModeGizmo.Minimal reproducible example
modify the
vaadin
artifactId tovaadin-core
mvn
Workaround
Use this configuration in your
vaadin-core
based Spring Boot application.properties to start without the DevModeGizmo and the new License Checker:Versions
The text was updated successfully, but these errors were encountered: