Skip to content
Merged
Changes from 1 commit
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
8 changes: 6 additions & 2 deletions generation/check_existing_release_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ function find_existing_version_pom() {
local version=$(xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' \
"${pom_file}")
echo -n "Checking ${group_id}:${artifact_id}:${version}:"
if [ -z "${group_id}" ] || [ -z "${artifact_id}" ] || [ -z "${version}" ]; then
echo "Couldn't parse the pom file: $pom_file"
if [ -z "${group_id}" ] || [ -z "${version}" ]; then
echo " Skipping file without explicit coordinates (likely inherits): $pom_file"
return 0
fi
if [ -z "${artifact_id}" ]; then
echo "Couldn't parse artifact_id in the pom file: $pom_file"
exit 1
fi
Comment thread
meltsufin marked this conversation as resolved.
Outdated
if [[ "${version}" == *SNAPSHOT* ]] && [ "${artifact_id}" != "google-cloud-java" ]; then
Expand Down
Loading