From b3e4ff3b6d2dd12fa5f535080e85945471f001d2 Mon Sep 17 00:00:00 2001 From: dshvaika Date: Mon, 29 Jun 2026 18:05:49 +0300 Subject: [PATCH] test(attributes): revert accidental ProjectInfo dev hack swept in by git commit -am Restores getProjectVersion() to read build properties; the hardcoded "4.2.2.3" was a local-only change unrelated to this PR. --- .../org/thingsboard/server/service/install/ProjectInfo.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/application/src/main/java/org/thingsboard/server/service/install/ProjectInfo.java b/application/src/main/java/org/thingsboard/server/service/install/ProjectInfo.java index cb34070a2b..128ca5578a 100644 --- a/application/src/main/java/org/thingsboard/server/service/install/ProjectInfo.java +++ b/application/src/main/java/org/thingsboard/server/service/install/ProjectInfo.java @@ -28,9 +28,8 @@ public class ProjectInfo { private final Optional buildProperties; public String getProjectVersion() { -// return buildProperties.orElseThrow(() -> new IllegalStateException("Build properties are missing. Please rebuild the project with maven")) -// .getVersion().replaceAll("[^\\d.]", ""); - return "4.2.2.3"; + return buildProperties.orElseThrow(() -> new IllegalStateException("Build properties are missing. Please rebuild the project with maven")) + .getVersion().replaceAll("[^\\d.]", ""); } public String getProductType() {