Skip to content

Commit eb376d7

Browse files
authored
Merge pull request #19 from UzJu/main
fix: Not specifying the project version causes the problem that the project version is NULL.
2 parents 782fe57 + 63e9519 commit eb376d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/cn/huoxian/dongtai/plugin/util/ConfigUtil.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ public static String getProjectVersion(){
121121
r_version = version;
122122
}
123123
else {
124-
r_version = VMProperties.get("project.version");
124+
r_version = "v1.0";
125+
TaintUtil.notificationWarning("未在配置中指定项目版本,当前使用默认版本v1.0");
125126
}
126127
ConfigUtil.projectVersion = r_version;
127128
logger.info("Return Project Version" + r_version);

0 commit comments

Comments
 (0)