File tree Expand file tree Collapse file tree 3 files changed +14
-13
lines changed
Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # This script adds the contents of a module's versions.txt to root versions.txt and then deletes it.
4+ # This should be run during addition of a new-module to the monorepo
5+
36set -e
47
58GENERATION_DIR=$( dirname -- " $0 " )
69
7- rm -f versions.txt
8-
9- echo " # Format:" >> versions.txt
10- echo " # module:released-version:current-version" >> versions.txt
11-
1210module_list=$( find . -mindepth 2 -maxdepth 2 -name pom.xml | sort --dictionary-order | xargs dirname)
1311
1412for path in $module_list ; do
15-
16- cat ${path} /versions.txt | while read LINE; do
17- if ! [[ $LINE == * " #" * ]] && [ " $LINE " != " " ]; then
18- echo $LINE >> versions.txt
19- fi
20- done
21-
13+ FILE=${path} /versions.txt
14+ if [ -f ${FILE} ]; then
15+ cat ${path} /versions.txt | while read LINE; do
16+ if ! [[ $LINE == * " #" * ]] && [ " $LINE " != " " ]; then
17+ echo $LINE >> versions.txt
18+ fi
19+ done
20+ fi
21+ rm -f ${FILE}
2222done
2323
Original file line number Diff line number Diff line change 4444 <dependency >
4545 <groupId >com.google.cloud</groupId >
4646 <artifactId >google-cloud-kms-bom</artifactId >
47- <version >2.8.1-SNAPSHOT</version ><!-- {x-version-update:google-cloud-kms-bom :current} -->
47+ <version >2.8.1-SNAPSHOT</version ><!-- {x-version-update:google-cloud-kms:current} -->
4848 </dependency >
4949 </dependencies >
5050 </dependencyManagement >
Original file line number Diff line number Diff line change @@ -587,3 +587,4 @@ grpc-google-cloud-workflows-v1beta:0.11.0:0.11.1-SNAPSHOT
587587grpc-google-cloud-workflows-v1:2.5.0:2.5.1-SNAPSHOT
588588proto-google-cloud-workflows-v1beta:0.11.0:0.11.1-SNAPSHOT
589589proto-google-cloud-workflows-v1:2.5.0:2.5.1-SNAPSHOT
590+ google-cloud-dns:2.3.0:2.3.1-SNAPSHOT
You can’t perform that action at this time.
0 commit comments