5

Is anyone using Retrolambda for a Google App Engine project? What does your pom.xml look like?

It's straightforward to compile for JDK8 and set up retrolambda's maven plugin. However, to deploy to GAE, Google's appengine-maven-plugin needs to be run under JDK7 otherwise it will compile JSP files into a format that breaks in production.

How can I use JDK8+retrolambda for compilation, but JDK7 for appengine:update?

4

1 回答 1

1

Sometime after I posted this question, Google made a change to the SDK (or the maven plugin) and fixed compatibility with JDK8.

Consequently, retrolambda now works as advertised. It's a huge productivity boost when working on GAE. Just make sure to run the test harness with JDK7 in your CI system.

于 2016-03-27T18:32:36.263 回答