-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
do
executable file
·58 lines (44 loc) · 1.15 KB
/
do
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
let "nextParam = 1"
for ((cmd = 1; cmd <= $#; cmd++)) do
(( nextParam++ ))
case "${!cmd}" in
"help")
echo ""
echo "Helper: (tip: you can chain parameters, e.g.: \"./do w 3.6.0 c t\")"
echo ""
echo "t test plugin"
echo "b compile"
echo "c clean"
echo "i install plugin's jar, sources and javadoc in local repository"
echo "w \$V set or upgrade Maven wrapper to version \$V"
echo "cv check plugins and dependencies versions"
echo "uv update plugins and dependencies versions"
echo "dt show dependencies tree"
;;
"t")
sh ./mvnw verify
;;
"b")
sh ./mvnw compile -DskipTests
;;
"c")
sh ./mvnw clean
;;
"i")
sh ./mvnw install -DskipTests
;;
"w")
mvn -N io.takari:maven:wrapper -Dmaven=${!nextParam}
;;
"cv")
sh ./mvnw versions:display-property-updates
;;
"uv")
sh ./mvnw versions:update-properties
;;
"dt")
sh ./mvnw dependency:tree
;;
esac
done