|
| 1 | +#!/bin/bash |
| 2 | +# Copyright 2026 Google LLC |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | + |
| 16 | +# Exit on error |
| 17 | +set -e |
| 18 | + |
| 19 | +# Get absolute paths |
| 20 | +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
| 21 | +MONOREPO_ROOT="$(dirname "$SCRIPT_DIR")" |
| 22 | + |
| 23 | +echo "========================================================" |
| 24 | +echo " Staging java-bigtable migration" |
| 25 | +echo "========================================================" |
| 26 | + |
| 27 | +# 1. Configure environment for the base migrate.sh script |
| 28 | +export SOURCE_REPO_URL="https://github.com/googleapis/java-bigtable" |
| 29 | +export MIGRATION_HEAD_BRANCH="main" |
| 30 | +export SQUASH_COMMITS="false" |
| 31 | +export CODEOWNER="@googleapis/bigtable-team" |
| 32 | +export BOM_SUBSTITUTIONS="gapic-libraries-bom:google-cloud-monitoring-bom" |
| 33 | +export PRE_INSTALL_DEPS="java-monitoring/google-cloud-monitoring-bom,java-monitoring/google-cloud-monitoring" |
| 34 | + |
| 35 | +# 2. Execute the central migration script |
| 36 | +"${SCRIPT_DIR}/migrate.sh" |
| 37 | + |
| 38 | +echo "" |
| 39 | +echo "========================================================" |
| 40 | +echo "Migration staged successfully!" |
| 41 | +echo "Results are available in the isolated clone:" |
| 42 | +echo " migration-work/google-cloud-java-target" |
| 43 | +echo "Current Branch: migrate-java-bigtable" |
| 44 | +echo "Next Steps: cd migration-work/google-cloud-java-target && mvn clean install -DskipTests" |
| 45 | +echo "========================================================" |
0 commit comments