diff --git a/java-workflows/samples/install-without-bom/pom.xml b/java-workflows/samples/install-without-bom/pom.xml
index 11b8c68db3f5..4b08fc57c391 100644
--- a/java-workflows/samples/install-without-bom/pom.xml
+++ b/java-workflows/samples/install-without-bom/pom.xml
@@ -29,7 +29,7 @@
com.google.cloud
google-cloud-workflows
- 0.3.1
+ 0.4.0
diff --git a/java-workflows/samples/snippets/pom.xml b/java-workflows/samples/snippets/pom.xml
index ca9a23fbbc4b..c2927e5b5e8b 100644
--- a/java-workflows/samples/snippets/pom.xml
+++ b/java-workflows/samples/snippets/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-workflows
- 0.3.1
+ 0.4.0