Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adapt to new library_list.txt #1424

Merged
merged 4 commits into from
Jan 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions spring-cloud-generator/generate-all.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#!/bin/bash

WORKING_DIR=`pwd`

while getopts d: flag
do
case "${flag}" in
d) dev_env=1;;
esac
done

cd ../
# Compute the project version.
PROJECT_VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)
Expand All @@ -12,19 +18,17 @@ cd spring-cloud-generator

bash download-repos.sh
libraries=$(cat $WORKING_DIR/library_list.txt | tail -n+2)
while IFS=, read -r library_name googleapis_location coordinates_version; do
while IFS=, read -r library_name googleapis_location coordinates_version googleapis_commitish; do
echo "processing library $library_name"
group_id=$(echo $coordinates_version | cut -f1 -d:)
artifact_id=$(echo $coordinates_version | cut -f2 -d:)
bash $WORKING_DIR/generate-one.sh -c $library_name -i $artifact_id -g $group_id -p $PROJECT_VERSION -f $googleapis_location
bash $WORKING_DIR/generate-one.sh -c $library_name -i $artifact_id -g $group_id -p $PROJECT_VERSION -f $googleapis_location -x $googleapis_commitish
done <<< $libraries


echo "run google-java-format on generated code"
cd ../spring-cloud-previews
./../mvnw com.coveo:fmt-maven-plugin:format -Dfmt.skip=false

cd ../spring-cloud-generator
rm -rf googleapis
rm -rf gapic-generator-java