diff --git a/java-cloudbuild/samples/install-without-bom/pom.xml b/java-cloudbuild/samples/install-without-bom/pom.xml
index 2e0b9d9cb32e..46d67f2a59da 100644
--- a/java-cloudbuild/samples/install-without-bom/pom.xml
+++ b/java-cloudbuild/samples/install-without-bom/pom.xml
@@ -29,7 +29,7 @@
com.google.cloud
google-cloud-build
- 3.4.1
+ 3.5.2
diff --git a/java-cloudbuild/samples/snapshot/pom.xml b/java-cloudbuild/samples/snapshot/pom.xml
index 88c6caeadd84..2af1c66b855b 100644
--- a/java-cloudbuild/samples/snapshot/pom.xml
+++ b/java-cloudbuild/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-build
- 3.4.1
+ 3.5.2