Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/evant/android-retrolambda-lombok
- Owner: evant
- License: mit
- Created: 2015-05-03T02:56:52.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2020-06-14T22:44:58.000Z (over 4 years ago)
- Last Synced: 2023-11-07T16:57:00.231Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 1.94 MB
- Stars: 175
- Watchers: 14
- Forks: 7
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.