tdlight-java-natives/scripts/core/deploy_snapshot.sh

20 lines
436 B
Bash
Raw Normal View History

2020-10-10 15:08:26 +02:00
#!/bin/bash -e
2021-12-08 00:17:22 +01:00
# OTHER ENVIRONMENT VARIABLES:
# API_TYPE = <legacy|sealed>
2021-12-08 00:48:27 +01:00
if [ -z "${API_TYPE}" ]; then
cd ../../generated
else
cd "../../generated-${API_TYPE}"
fi
2020-10-10 15:08:26 +02:00
2021-12-08 00:17:22 +01:00
FALLBACK_API_TYPE="sealed"
2021-12-11 15:54:12 +01:00
SAFE_VERSION_NAME="v4_0_0"
REVISION_SUFFIX="-SNAPSHOT"
REVISION_MVN="4.0.0${REVISION_SUFFIX}"
2021-12-08 00:17:22 +01:00
2021-12-11 15:54:12 +01:00
mvn -B -Drevision="${REVISION_MVN}" -DsafeVersionName="${SAFE_VERSION_NAME}" "-D${API_TYPE:-${FALLBACK_API_TYPE}}" deploy
2020-10-10 15:08:26 +02:00
echo "Done."
exit 0