Browse Source
Strip 'SNAPSHOT' for OpenAPI spec and client version
pull/15141/head
Viacheslav Klimov
1 month ago
Failed to extract signature
2 changed files with
4 additions and
1 deletions
-
application/src/main/java/org/thingsboard/server/config/SwaggerConfiguration.java
-
pom.xml
|
|
|
@ -167,6 +167,9 @@ public class SwaggerConfiguration { |
|
|
|
if (StringUtils.isEmpty(apiVersion)) { |
|
|
|
apiVersion = appVersion; |
|
|
|
} |
|
|
|
if (apiVersion != null && apiVersion.endsWith("-SNAPSHOT")) { |
|
|
|
apiVersion = apiVersion.substring(0, apiVersion.length() - "-SNAPSHOT".length()); |
|
|
|
} |
|
|
|
|
|
|
|
Info info = new Info() |
|
|
|
.title(title) |
|
|
|
|
|
|
|
@ -62,7 +62,7 @@ |
|
|
|
<pkg.implementationTitle>${project.name}</pkg.implementationTitle> |
|
|
|
<pkg.unixLogFolder>/var/log/${pkg.name}</pkg.unixLogFolder> |
|
|
|
<pkg.installFolder>/usr/share/${pkg.name}</pkg.installFolder> |
|
|
|
<thingsboard.client.version>4.3.1.2-SNAPSHOT</thingsboard.client.version> |
|
|
|
<thingsboard.client.version>4.3.1.2</thingsboard.client.version> |
|
|
|
<spring-boot.version>3.5.13</spring-boot.version> |
|
|
|
<javax.xml.bind-api.version>2.4.0-b180830.0359</javax.xml.bind-api.version> |
|
|
|
<jjwt.version>0.12.5</jjwt.version> |
|
|
|
|