mirror of
https://github.com/microsoft/playwright-java.git
synced 2025-08-30 09:07:07 +00:00
27 lines
396 B
Bash
Executable File
27 lines
396 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set +x
|
|
|
|
if [[ $# == 0 ]]; then
|
|
echo "Missing version parameter."
|
|
echo "Usage:"
|
|
echo " $(basename $0) 0.170.3-SNAPSHOT"
|
|
exit 1
|
|
fi
|
|
|
|
trap "cd $(pwd -P)" EXIT
|
|
cd "$(dirname $0)/.."
|
|
|
|
VERSION=$1
|
|
POM_FILES=(
|
|
pom.xml
|
|
tools/*/pom.xml
|
|
examples/pom.xml
|
|
)
|
|
|
|
for name in ${POM_FILES[*]};
|
|
do
|
|
mvn versions:set -D generateBackupPoms=false -D newVersion=$VERSION -f $name
|
|
done
|