This plugin will automatically build your java or android project with retrolambda, giving you lambda goodness on java 6 or 7. It relies on the wonderful retrolambda by Esko Luontola. The minimum android gradle plugin is 1.5.0 and the minimum gradle plugin is 2.5. The plugin will compile the source code with java8 and then replace the class files with the output of retrolambda. Set the java version to compile to. The default is 6. Only 5, 6 or 7 are accepted. The default version of retrolambda used is 'net.orfjackal.retrolambda:retrolambda:2.5.6'. If you want to use a different one, you can configure it in your dependencies. If you are running with java 6 or 7 you should really consider updating. First try updating to the latest version of the android gradle plugin. Newer versions of lint are compatible with java 8 sources.
Features
- You can force unit tests to be run with an older version of java
- You can use the new plugin syntax for gradle 2.1+
- Download jdk8 and set it as your default
- The minimum android gradle plugin is 1.5.0
- The minimum gradle plugin is 2.5
- Build your java or android project with retrolambda