Forward Gradle version properties through site deployment
This commit is contained in:
1 parent
c76b10e9fd
commit
0d727d64a5
1 file changed
+5
-1
+5
-1
@@ -17,11 +17,15 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Pass snapshot overrides through explicitly, e.g. -Plyng.version=1.5.11-SNAPSHOT.
|
||||||
|
GRADLE_ARGS=()
|
||||||
upload_only=false
|
upload_only=false
|
||||||
target=vps # default: new server; use --old for d.lynglang.com
|
target=vps # default: new server; use --old for d.lynglang.com
|
||||||
for arg in "$@"; do
|
for arg in "$@"; do
|
||||||
if [[ "$arg" == "-u" || "$arg" == "--upload-only" ]]; then
|
if [[ "$arg" == "-u" || "$arg" == "--upload-only" ]]; then
|
||||||
upload_only=true
|
upload_only=true
|
||||||
|
elif [[ "$arg" == -P* ]]; then
|
||||||
|
GRADLE_ARGS+=("$arg")
|
||||||
elif [[ "$arg" == "--old" ]]; then
|
elif [[ "$arg" == "--old" ]]; then
|
||||||
target=com
|
target=com
|
||||||
fi
|
fi
|
||||||
@@ -125,7 +129,7 @@ if [[ "$upload_only" == false ]]; then
|
|||||||
refreshTextmateZip
|
refreshTextmateZip
|
||||||
updateIdeaPluginDownloadLink || echo "WARN: proceeding without updating IDEA plugin download link"
|
updateIdeaPluginDownloadLink || echo "WARN: proceeding without updating IDEA plugin download link"
|
||||||
|
|
||||||
./gradlew site:jsBrowserDistribution
|
./gradlew site:jsBrowserDistribution "${GRADLE_ARGS[@]}"
|
||||||
BUILD_RC=$?
|
BUILD_RC=$?
|
||||||
|
|
||||||
# Always restore original doc if backup exists
|
# Always restore original doc if backup exists
|
||||||
|
|||||||
Reference in new issue
Block a user