-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·23 lines (21 loc) · 950 Bytes
/
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
#!/bin/bash
show_usage() {
echo -e "Usage: $0 [ARGUMENTS]"
echo ""
echo "arguments:"
echo -e "\t-build version - specify the version of JAR. For example, 1.0.0"
echo -e "\t-instance name - specify the instance name without opencbs prefix. For example, my-finance or impact-finance"
}
if [ "$#" -ne 2 ]; then
show_usage
exit 1
else
mvn -f ./server/opencbs-spring-boot-starter/pom.xml clean install -DskipTests
mvn -f ./server/opencbs-core/pom.xml clean install -DskipTests
mvn -f ./server/opencbs-loans/pom.xml clean install -DskipTests
mvn -f ./server/opencbs-borrowings/pom.xml clean install -DskipTests
mvn -f ./server/opencbs-savings/pom.xml clean install -DskipTests
mvn -f ./server/opencbs-term-deposits/pom.xml clean install -DskipTests
mvn -f ./server/opencbs-bonds/pom.xml clean install -DskipTests
mvn -f ./server/opencbs-$2/pom_backend.xml clean install jar:jar -DBUILD_VERSION=$1
fi