From b44a9945f7899ebeabcfb22e62b525693c4dd8f6 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Tue, 19 Sep 2023 15:52:26 +0000 Subject: [PATCH] chore: exclude grpc-android from bom validation (#6189) * chore: exclude grpc-android from bom validation --- .../java/com/google/cloud/CreateBomCanaryProject.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/validate-bom/src/main/java/com/google/cloud/CreateBomCanaryProject.java b/tests/validate-bom/src/main/java/com/google/cloud/CreateBomCanaryProject.java index 8560c0d5de4c..bebc300f80f3 100644 --- a/tests/validate-bom/src/main/java/com/google/cloud/CreateBomCanaryProject.java +++ b/tests/validate-bom/src/main/java/com/google/cloud/CreateBomCanaryProject.java @@ -111,6 +111,15 @@ private static String calculateDependenciesSection(Bom bom) { continue; } + // Skipping grpc-android as it is not used by Google Cloud Client Libraries for Java. Checking + // for availability of + // this unused artifact on Maven Central has caused BOM validation check to fail in the past. + // See + // https://github.com/googleapis/sdk-platform-java/pull/1989#issuecomment-1724039670 + if ("grpc-android".equals(managedDependency.getArtifactId())) { + continue; + } + builder.append(" \n"); builder .append(" ")