forked from dataduke/epizza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·64 lines (54 loc) · 2.24 KB
/
build.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env bash
set -e
COMPONENT=${@:-all}
RED='\033[0;31m'
NC='\033[0m' # No Color
if echo ${COMPONENT} | grep -q 'all\|infra\|plugin\|gradle'; then
echo
echo -e "${RED}+-------------------------------------------+${NC}"
echo -e "${RED}| building 'gradle-plugins' |${NC}"
echo -e "${RED}+-------------------------------------------+${NC}"
./gradle-plugins/gradlew -p gradle-plugins build pTML
fi
if echo ${COMPONENT} | grep -q 'all\|infra\|starter\|messag'; then
echo
echo -e "${RED}+-------------------------------------------+${NC}"
echo -e "${RED}| building 'messaging-boot-starter' |${NC}"
echo -e "${RED}+-------------------------------------------+${NC}"
./messaging-boot-starter/gradlew -p messaging-boot-starter build pTML
fi
if echo ${COMPONENT} | grep -q 'all\|infra\|config'; then
echo
echo -e "${RED}+-------------------------------------------+${NC}"
echo -e "${RED}| building 'config-server' |${NC}"
echo -e "${RED}+-------------------------------------------+${NC}"
./config-server/gradlew -p config-server build
fi
if echo ${COMPONENT} | grep -q 'all\|service\|order'; then
echo
echo -e "${RED}+-------------------------------------------+${NC}"
echo -e "${RED}| building 'order' |${NC}"
echo -e "${RED}+-------------------------------------------+${NC}"
./order/gradlew -p order build pTML
fi
if echo ${COMPONENT} | grep -q 'all\|service\|bakery'; then
echo
echo -e "${RED}+-------------------------------------------+${NC}"
echo -e "${RED}| building 'bakery' |${NC}"
echo -e "${RED}+-------------------------------------------+${NC}"
./bakery/gradlew -p bakery build
fi
if echo ${COMPONENT} | grep -q 'all\|ui\|delivery'; then
echo
echo -e "${RED}+-------------------------------------------+${NC}"
echo -e "${RED}| building 'delivery' |${NC}"
echo -e "${RED}+-------------------------------------------+${NC}"
./delivery/gradlew -p delivery build
fi
if echo ${COMPONENT} | grep -q 'all\|ui\|web'; then
echo
echo -e "${RED}+-------------------------------------------+${NC}"
echo -e "${RED}| building 'order-ui' |${NC}"
echo -e "${RED}+-------------------------------------------+${NC}"
./order-ui/gradlew -p order-ui build
fi