From 2b91172b337dc03cb45fe84fd8ca9af7b9f8b4fb Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Wed, 1 Jul 2026 19:59:33 +0000 Subject: [PATCH 1/2] fix: exclude java-vertexai from existing versions check The java-vertexai library has been archived/deprecated and replaced with a dummy POM. We do not plan to release any new versions for it, so it should be excluded from the existing versions check in CI. TAG=agy CONV=f8eb6315-206b-49b6-ac81-b3d05af93c38 --- generation/check_existing_release_versions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation/check_existing_release_versions.sh b/generation/check_existing_release_versions.sh index ccdc121afe6c..f033ee27596e 100755 --- a/generation/check_existing_release_versions.sh +++ b/generation/check_existing_release_versions.sh @@ -44,7 +44,7 @@ function find_existing_version_pom() { return_code=0 for pom_file in $(find . -maxdepth 3 -name pom.xml|sort --dictionary-order); do - if [[ "${pom_file}" == *java-samples* || "${pom_file}" == *showcase* || "${pom_file}" == *coverage-report* || "${pom_file}" == *sdk-platform-java/pom.xml ]]; then + if [[ "${pom_file}" == *java-samples* || "${pom_file}" == *showcase* || "${pom_file}" == *coverage-report* || "${pom_file}" == *sdk-platform-java/pom.xml || "${pom_file}" == *java-vertexai* ]]; then continue fi find_existing_version_pom "${pom_file}" From 67866216662987697b8e08da0c2a9205a2b5f33f Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Wed, 1 Jul 2026 20:00:30 +0000 Subject: [PATCH 2/2] docs: explain java-vertexai exclusion in version check script Add a comment explaining why we hardcode the exclusion of java-vertexai in check_existing_release_versions.sh. TAG=agy CONV=f8eb6315-206b-49b6-ac81-b3d05af93c38 --- generation/check_existing_release_versions.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generation/check_existing_release_versions.sh b/generation/check_existing_release_versions.sh index f033ee27596e..ac0fa840c329 100755 --- a/generation/check_existing_release_versions.sh +++ b/generation/check_existing_release_versions.sh @@ -44,6 +44,9 @@ function find_existing_version_pom() { return_code=0 for pom_file in $(find . -maxdepth 3 -name pom.xml|sort --dictionary-order); do + # Exclude java-vertexai because it has been archived and replaced with a dummy POM. + # We do not plan to release any new versions for it, so we don't want to check if its + # version (which already exists) is a duplicate. if [[ "${pom_file}" == *java-samples* || "${pom_file}" == *showcase* || "${pom_file}" == *coverage-report* || "${pom_file}" == *sdk-platform-java/pom.xml || "${pom_file}" == *java-vertexai* ]]; then continue fi