-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (24 loc) · 1.22 KB
/
Makefile
File metadata and controls
27 lines (24 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
##首次编译
build:
mvn clean install
mvn -f smart-mqtt-broker/pom.xml clean install
mvn -f smart-mqtt-maven-plugin/pom.xml clean install
mvn -f plugins/pom.xml clean install
clean:
mvn clean
mvn -f smart-mqtt-broker/pom.xml clean
mvn -f smart-mqtt-maven-plugin/pom.xml clean
mvn -f plugins/pom.xml clean
# 当需要升级版本时,执行该命令
version=1.5.5
update_version:
sed -i '' 's/public static final String VERSION = ".*";/public static final String VERSION = "v${version}";/' smart-mqtt-plugin-spec/src/main/java/tech/smartboot/mqtt/plugin/spec/Options.java
mvn versions:set -DnewVersion=${version} versions:commit
mvn -f smart-mqtt-broker/pom.xml versions:set -DnewVersion=${version} versions:commit
mvn -f smart-mqtt-bench/pom.xml versions:set -DnewVersion=${version} versions:commit
mvn -f plugins/pom.xml versions:set -DnewVersion=${version} versions:commit
mvn -f smart-mqtt-test/pom.xml versions:set -DnewVersion=${version} versions:commit
mvn clean install
mvn -f smart-mqtt-broker/pom.xml clean install
mvn -f smart-mqtt-maven-plugin/pom.xml clean install
mvn -f smart-mqtt-maven-plugin/pom.xml versions:use-dep-version -Dincludes=tech.smartboot.mqtt:smart-mqtt-broker -DdepVersion=${version} versions:commit