-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun
More file actions
executable file
·53 lines (41 loc) · 928 Bytes
/
run
File metadata and controls
executable file
·53 lines (41 loc) · 928 Bytes
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
#!/usr/bin/env bash
set -Exeuo pipefail
IFS=$'\t\n'
run-help() {
cat <<-'EOF' >&2
Usage: run <command>
Executes the specified subcommand.
Available subcommands:
- help This help text
- update Update dependencies
- plugin Plugins sub-commands
EOF
}
run-sync() {
xsltproc spring/spring.xslt pom.xml \
| unexpand -t2 > spring/pom.xml
}
run-update() {
run-sync
mvn --activate-profiles release \
versions:update-properties \
versions:update-parent \
versions:commit \
spotless:apply
}
run-plugin() {
"run-plugin-${@:-help}"
}
run-plugin-help() {
cat <<-'EOF' >&2
Usage: run plugin <command>
Execute plugin related subcommands.
Available subcommands:
- report Show plugin updates report
EOF
}
run-plugin-report() {
mvn versions:plugin-updates-aggregate-report
xdg-open target/reports/plugin-updates-aggregate-report.html
}
"run-${@:-help}"