upgrade version

This commit is contained in:
wangjianhong
2025-08-06 15:05:56 +08:00
parent d08dbf4bee
commit a197478d0a
2 changed files with 14 additions and 10 deletions

View File

@@ -4,20 +4,24 @@
## Getting started
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
##
```
# 1. 查看哪些依赖可以升级
mvn versions:display-dependency-updates
# 2. 自动更新 properties 中的版本(如 spring.version
mvn versions:update-properties
mvn versions:set -DnewVersion=1.0.0-RELEASE
# 3. 更新项目自身版本号(比如发布正式版)
mvn versions:set -DnewVersion=1.2.0.RELEASE
# 4. 检查 pom.xml 是否正确
# 5. 确认无误后,提交更改(删除备份)
mvn versions:commit
```
```