@@ -34,11 +34,11 @@ function generate_maven_file() {
3434
3535 echo " +++ Generating maven-metadata.xml for '$location '"
3636
37- releases=$( aws s3 ls " $location /" \
38- | grep -v ' maven-metadata.xml' \
39- | grep -v ' io.bitdrift' \
40- | awk ' {print $2}' \
41- | sed ' s/^\///;s/\/$//' )
37+ releases=$( aws s3 ls " $location /" |
38+ grep -v ' maven-metadata.xml' |
39+ grep -v ' io.bitdrift' |
40+ awk ' {print $2}' |
41+ sed ' s/^\///;s/\/$//' )
4242
4343 python3 " $sdk_repo /ci/generate_maven_metadata.py" --releases " ${releases// $' \n ' / ,} " --library " library_name"
4444
@@ -53,33 +53,31 @@ function release_capture_sdk() {
5353
5454 # We get a zip containing:
5555 # * the artifacts named per Maven conventions
56- # * .tar symbols file containing symbols for the stripped release shared libraries.
57- # * shared dylib libraries
56+ # * .tar symbols file containing symbols for the release build (e.g., for the .aar).
5857
5958 pushd " $( mktemp -d) "
60- unzip -o " $sdk_repo /$capture_archive "
59+ unzip -o " $sdk_repo /$capture_archive "
6160
62- echo " +++ Uploading artifacts to s3 bucket"
61+ echo " +++ Uploading artifacts to s3 bucket"
6362
64- local -r remote_location_prefix=" $remote_location_root_prefix /capture"
65- local -r name=" capture-$version "
63+ local -r remote_location_prefix=" $remote_location_root_prefix /capture"
64+ local -r name=" capture-$version "
6665
67- files=(\
68- " $sdk_repo /ci/LICENSE.txt" \
69- " $sdk_repo /ci/NOTICE.txt" \
70- " $name .pom" \
71- " $name -javadoc.jar" \
72- " $name -sources.jar" \
73- " $name -symbols.tar" \
74- " $name -dylib.tar" \
75- " $name .aar" \
76- )
66+ files=(
67+ " $sdk_repo /ci/LICENSE.txt"
68+ " $sdk_repo /ci/NOTICE.txt"
69+ " $name .pom"
70+ " $name -javadoc.jar"
71+ " $name -sources.jar"
72+ " $name -symbols.tar"
73+ " $name .aar"
74+ )
7775
78- for file in " ${files[@]} " ; do
79- upload_file " $remote_location_prefix /$version " " $file "
80- done
76+ for file in " ${files[@]} " ; do
77+ upload_file " $remote_location_prefix /$version " " $file "
78+ done
8179
82- generate_maven_file " $remote_location_prefix " " capture"
80+ generate_maven_file " $remote_location_prefix " " capture"
8381 popd
8482}
8583
@@ -92,16 +90,16 @@ function release_gradle_library() {
9290 local -r remote_location_prefix=" $remote_location_root_prefix /$library_name "
9391
9492 pushd " $( mktemp -d) "
95- unzip -o " $sdk_repo /$archive "
96-
97- # Update the per-version files
98- aws s3 cp " $sdk_repo /ci/LICENSE.txt" " $remote_location_prefix /$version /LICENSE.txt" --region us-east-1
99- aws s3 cp " $sdk_repo /ci/NOTICE.txt" " $remote_location_prefix /$version /NOTICE.txt" --region us-east-1
93+ unzip -o " $sdk_repo /$archive "
94+
95+ # Update the per-version files
96+ aws s3 cp " $sdk_repo /ci/LICENSE.txt" " $remote_location_prefix /$version /LICENSE.txt" --region us-east-1
97+ aws s3 cp " $sdk_repo /ci/NOTICE.txt" " $remote_location_prefix /$version /NOTICE.txt" --region us-east-1
10098
101- # Upload all the files in the zip
102- aws s3 cp . " $remote_location_prefix /$version /" --recursive --region us-east-1
99+ # Upload all the files in the zip
100+ aws s3 cp . " $remote_location_prefix /$version /" --recursive --region us-east-1
103101
104- generate_maven_file " $remote_location_prefix " " $library_name "
102+ generate_maven_file " $remote_location_prefix " " $library_name "
105103 popd
106104}
107105
@@ -115,15 +113,15 @@ function release_gradle_plugin() {
115113 local -r remote_location_prefix=" $remote_location_root_prefix /$plugin_name /$plugin_marker "
116114
117115 pushd " $( mktemp -d) "
118- unzip -o " $sdk_repo /$archive "
116+ unzip -o " $sdk_repo /$archive "
119117
120- aws s3 cp " $sdk_repo /ci/LICENSE.txt" " $remote_location_prefix /$version /LICENSE.txt" --region us-east-1
121- aws s3 cp " $sdk_repo /ci/NOTICE.txt" " $remote_location_prefix /$version /NOTICE.txt" --region us-east-1
118+ aws s3 cp " $sdk_repo /ci/LICENSE.txt" " $remote_location_prefix /$version /LICENSE.txt" --region us-east-1
119+ aws s3 cp " $sdk_repo /ci/NOTICE.txt" " $remote_location_prefix /$version /NOTICE.txt" --region us-east-1
122120
123- aws s3 cp . " $remote_location_prefix /$version /" --recursive --region us-east-1
121+ aws s3 cp . " $remote_location_prefix /$version /" --recursive --region us-east-1
124122
125- generate_maven_file " $remote_location_prefix " " $plugin_marker "
126- popd
123+ generate_maven_file " $remote_location_prefix " " $plugin_marker "
124+ popd
127125}
128126
129127release_capture_sdk
0 commit comments