I have a Google App Engine Standard server running Java 7, and would like to upgrade to Java 8. I have added <runtime>java8</runtime>
to my pom.xml
as follows:
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>my-app</application>
<version>1.0</version>
<threadsafe>true</threadsafe>
<runtime>java8</runtime>
...
This was described in https://cloud.google.com/appengine/docs/standard/java/runtime-java8#specifying_the_java_8_runtime_for_your_app.
However when building the application, it fails with the error Unrecognized element <runtime>
. Can anyone advise?
You should probably be using an old version of appengine sdk currently. Check whether you have the latest version of appengine-api
dependency.
I use following appengine-api
and it works fine for me.
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api-1.0-sdk</artifactId>
<version>1.9.58</version>
</dependency>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With