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?