-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.sh
executable file
·43 lines (34 loc) · 1.17 KB
/
publish.sh
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
#!/usr/bin/env bash
PUBLISH_COMMAND="publish"
case $1 in
"" )
;;
--local )
PUBLISH_COMMAND="publishLocal"
;;
--signed )
PUBLISH_COMMAND="publishSigned"
;;
* )
echo "Invalid option: $1"
exit 1
;;
esac
echo "Artifacts will be published with '$PUBLISH_COMMAND' command."
set -x
sbt "project lib" "+ $PUBLISH_COMMAND"
sbt "project plugin" "^ $PUBLISH_COMMAND"
sbt "project api-client-core" "+ $PUBLISH_COMMAND" \
"project api-client-consul" "+ $PUBLISH_COMMAND" \
"project api-client-play24" "+ $PUBLISH_COMMAND" \
"project api-client-play25" "+ $PUBLISH_COMMAND" \
"project api-client-play26" "+ $PUBLISH_COMMAND" \
"project api-client-play27" "+ $PUBLISH_COMMAND"
sbt "project api-server-play24" "+ $PUBLISH_COMMAND" \
"project api-server-play25" "+ $PUBLISH_COMMAND" \
"project api-server-play26" "+ $PUBLISH_COMMAND" \
"project api-server-play27" "+ $PUBLISH_COMMAND"
sbt "project api-scaldi-play24" "+ $PUBLISH_COMMAND" \
"project api-scaldi-play25" "+ $PUBLISH_COMMAND" \
"project api-scaldi-play26" "+ $PUBLISH_COMMAND" \
"project api-scaldi-play27" "+ $PUBLISH_COMMAND"