I'm stuck with this problem for few days now. I have a Spring Boot application which I've created locally and I want to deploy it to Google Cloud App Engine. I'm using a Cloud Code plugin so that I can deploy from within Intellij. I've been trying to deploy from gcloud CLI but I kept getting errors, so now I'm trying to do the same from within Intellij. This is the error that I'm getting:
I've set everything to java 11 in the project structure, and in the java compiler settings too, my local java version is also 11, what might be the problem?
CodePudding user response:
I've set everything to java 11 in the project structure, and in the java compiler settings too, my local java version is also 11, what might be the problem?
Google is the problem. Specifically, evidently AppEngine itself, or possibly because you configured it that way, is limited to java8 which is end of lifed at this point (but still widely used). v52 is java8, v55 is java11.
Set your stuff to java8, recompile, try again.
CodePudding user response:
Set runtime: java11
in your app.yaml
file.