Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evant/android-retrolambda-lombok

A modified version of lombok ast that allows lint to run on java 8 sources without error.
https://github.com/evant/android-retrolambda-lombok

Last synced: 2 months ago
JSON representation

A modified version of lombok ast that allows lint to run on java 8 sources without error.

Awesome Lists containing this project

README

        

# android-retrolambda-lombok
A modified version of lombok ast that allows lint to run on java 8 sources without error.

## Usage
All you have to do is modify you `build.gradle` as such
```groovy
buildscript {
repositories {
jcenter()
...
}

dependencies {
classpath 'com.android.tools.build:gradle:'
classpath "me.tatarka:gradle-retrolambda:"
classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2'
}

// Exclude the version that the android plugin depends on.
configurations.classpath.exclude group: 'com.android.tools.external.lombok'
}
```
## Additional Lint Configuration
Lint doesn't realize that try-with-resources are backported by retrolambda. You can ignore just that while keeping the rest of the `NewApi` lint check by adding the following to your `lint.xml`.
```xml

```

## Limitations
- Currently you must run gradle with java 8. This may or may not be fixed in the future depending on if I can get lombok to compile with a lower java version.