Skip to content

Commit

Permalink
fix: Get vaadin version from core (#15239)
Browse files Browse the repository at this point in the history
Use vaadin-core-versions instead of
vaadin-versions as core-versions is also available
when using the full vaadin dependency

Fixes #15236
  • Loading branch information
caalador authored Nov 25, 2022
1 parent da9d672 commit 1d9df7e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,15 @@ private String fetchOperatingSystem() {

private String fetchVaadinVersion() {
try (InputStream vaadinVersionsStream = getClass().getClassLoader()
.getResourceAsStream(Constants.VAADIN_VERSIONS_JSON)) {
.getResourceAsStream(Constants.VAADIN_CORE_VERSIONS_JSON)) {
if (vaadinVersionsStream != null) {
JsonObject vaadinVersions = Json.parse(IOUtils.toString(
vaadinVersionsStream, StandardCharsets.UTF_8));
return vaadinVersions.get("platform").asString();
} else {
LoggerFactory.getLogger(getClass()).info(
"Unable to determine version information. No vaadin_versions.json found");
"Unable to determine version information. No {} found",
Constants.VAADIN_CORE_VERSIONS_JSON);
}
} catch (Exception e) {
LoggerFactory.getLogger(getClass())
Expand Down

0 comments on commit 1d9df7e

Please sign in to comment.