I setup a gcp google-cloud-run Java and Spring Boot deployment using the Continuously deploy from a repository option as shown below.
This creates an inline Cloud Build trigger with using an inline configuration. I got it working but the Java version was set to Java 11 and this was a problem for SpringBoot 3.X.
My question is how can I change the inline Cloud Build configuration to use Java 17 instead of Java 11?

Ok, I got it working, sharing here.
First edit the Cloud Build trigger and open the editor
Then add the
GOOGLE_RUNTIME_VERSIONargument to the buildpack as shown here: Be sure to save your changes.