Browse Source

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.
pull/15865/head
dshvaika 3 months ago
parent
commit
b3e4ff3b6d
  1. 5
      application/src/main/java/org/thingsboard/server/service/install/ProjectInfo.java

5
application/src/main/java/org/thingsboard/server/service/install/ProjectInfo.java

@ -28,9 +28,8 @@ public class ProjectInfo {
private final Optional<BuildProperties> 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() {

Loading…
Cancel
Save