diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh
index 9a5105d7..f18c6b8d 100755
--- a/.kokoro/dependencies.sh
+++ b/.kokoro/dependencies.sh
@@ -68,11 +68,11 @@ function completenessCheck() {
# This is stripped from the output as it is not present in the flattened pom.
# Only dependencies with 'compile' or 'runtime' scope are included from original dependency list.
msg "Generating dependency list using original pom..."
- mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e 's/ --.*//' >.org-list.txt
+ mvn dependency:list -f pom.xml -DexcludeArtifactIds=error_prone_annotations -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e 's/ --.*//' >.org-list.txt
# Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes)
msg "Generating dependency list using flattened pom..."
- mvn dependency:list -f .flattened-pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt
+ mvn dependency:list -f .flattened-pom.xml -DexcludeArtifactIds=error_prone_annotations -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt
# Compare two dependency lists
msg "Comparing dependency lists..."
diff --git a/pom.xml b/pom.xml
index 79809bcf..d9fa64ff 100644
--- a/pom.xml
+++ b/pom.xml
@@ -65,8 +65,8 @@
google-iam-parent
3.18.1
4.13.2
- 1.38.1
- 30.1-android
+ 1.41.0
+ 31.0.1-android
diff --git a/synth.py b/synth.py
index bd68d39c..d90a71f7 100644
--- a/synth.py
+++ b/synth.py
@@ -106,4 +106,5 @@ def build_grpc(target):
'README.md',
'samples/*',
'.github/workflows/samples.yaml',
+ '.kokoro/dependencies.sh',
])