Skip to content

Commit f0ea1ec

Browse files
author
liyan.90210
committed
feat auto update sdk
1 parent c83e658 commit f0ea1ec

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

Changelog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Change log
22

3+
2025-03-03 Bumped to version v1.0.208
4+
- Fixed a version detection bug that occurred when v1 and v2 SDKs were used simultaneously in the same application.
5+
36
2025-02-27 Bumped to version v1.0.207
47
- Updated apis for contentSecurity/imagex/livesaas/vikingDB/vod
58

volc-sdk-java/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.volcengine</groupId>
7-
<version>1.0.207</version>
7+
<version>1.0.208</version>
88
<artifactId>volc-sdk-java</artifactId>
99

1010
<name>volc-sdk-java</name>
@@ -135,7 +135,7 @@
135135
<directory>src/main/resources</directory>
136136
<filtering>true</filtering>
137137
<includes>
138-
<include>**/version</include>
138+
<include>**/sdkversion</include>
139139
</includes>
140140
</resource>
141141
</resources>

volc-sdk-java/src/main/java/com/volcengine/service/BaseServiceImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,11 @@ private void init(ServiceInfo info) {
134134

135135
final Properties properties = new Properties();
136136
try {
137-
properties.load(this.getClass().getClassLoader().getResourceAsStream("com/volcengine/version"));
137+
properties.load(this.getClass().getClassLoader().getResourceAsStream("com/volcengine/sdkversion"));
138138
this.VERSION = properties.getProperty("version");
139139
} catch (IOException e) {
140140
LOG.error("Read file version file fail.");
141+
this.VERSION = "UNKNOWN";
141142
}
142143
}
143144

0 commit comments

Comments
 (0)