PromucFlow_constructor/app/server/build.sh
Shrikant Sharat Kandula bba78afc3b
chore: Upgrade dependencies reported by Dependabot (#13735)
Upgrades vulnerable dependencies in all plugins except for MySQL. That one is still failing and I'll fix it in a separate PR. Issue #14475

Co-authored-by: Nayan <nayan@appsmith.com>
Co-authored-by: Anagh Hegde <anagh@appsmith.com>
2022-07-19 10:23:27 +05:30

37 lines
836 B
Bash
Executable File

#!/bin/bash
# Remove previous dist directory
rm -rf dist/
is_tests_enabled=true
for i in "$@"; do
if [[ $i == "-DskipTests" ]]; then
is_tests_enabled=false
break
fi
done
if $is_tests_enabled; then
# If tests will be run, let's pull some required images that often fail to be pulled from inside Maven's test run.
docker image pull testcontainers/ryuk:0.3.0
fi
# Build the code. $@ accepts all the parameters from the input command line and uses it in the maven build command
mvn clean package "$@"
if [[ $? -eq 0 ]]; then
echo "mvn Successful"
else
echo "mvn Failed"
exit 1
fi
# Create the dist directory
mkdir -p dist/plugins
# Copy the server jar
cp -v ./appsmith-server/target/server-*.jar dist/
# Copy all the plugins
rsync -av --exclude "original-*.jar" ./appsmith-plugins/*/target/*.jar dist/plugins/