diff --git a/spring-cloud-gcp-samples/spring-cloud-gcp-security-firebase-sample/pom.xml b/spring-cloud-gcp-samples/spring-cloud-gcp-security-firebase-sample/pom.xml
index 20ec0e3fa7..8be593ee9c 100644
--- a/spring-cloud-gcp-samples/spring-cloud-gcp-security-firebase-sample/pom.xml
+++ b/spring-cloud-gcp-samples/spring-cloud-gcp-security-firebase-sample/pom.xml
@@ -13,7 +13,7 @@
UTF-8
UTF-8
- 1.8
+ 17
4.0.0
diff --git a/spring-cloud-gcp-samples/spring-cloud-gcp-security-iap-sample/pom.xml b/spring-cloud-gcp-samples/spring-cloud-gcp-security-iap-sample/pom.xml
index e38cb48a55..5a9bfcb7a1 100644
--- a/spring-cloud-gcp-samples/spring-cloud-gcp-security-iap-sample/pom.xml
+++ b/spring-cloud-gcp-samples/spring-cloud-gcp-security-iap-sample/pom.xml
@@ -17,7 +17,7 @@
UTF-8
UTF-8
- 1.8
+ 17
diff --git a/spring-cloud-gcp-samples/spring-cloud-gcp-security-iap-sample/src/main/appengine/app.yaml b/spring-cloud-gcp-samples/spring-cloud-gcp-security-iap-sample/src/main/appengine/app.yaml
index a1b816909d..f451a23160 100644
--- a/spring-cloud-gcp-samples/spring-cloud-gcp-security-iap-sample/src/main/appengine/app.yaml
+++ b/spring-cloud-gcp-samples/spring-cloud-gcp-security-iap-sample/src/main/appengine/app.yaml
@@ -1,4 +1,4 @@
-runtime: java11
+runtime: java17
instance_class: F1
env_variables: