New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Upgrading to android tools gradle plugin 3.6.0+ breaks lombok #2412
Comments
It's really annoying. We can't update android gradle plugin in any of our projects because of this. @rzwitserloot @rspilker can you look at this bug please ? |
I don't know which is better, 3.5.3 or 3.6.1. I know that 3.5.3 doesn't fail the build. But there is a warning in the log that lombok is disabled. So probably the code doesn't do what you expect. In your example, you've annotated |
My knowledge of Kotlin is limited, but is I look at the IncrementalProcessinEnvironment and the lombok source code at This is only going to work if there is somewhere a Otherwise we need way more code to make it work with the Kotlin compiler. |
Can you see if the edge release fixes this problem? |
Nope, it didn't help. I didn't manage to get plugin (net.ltgt.apt) to work, though I'm not sure it is strictly required. Without this plugin it still complaints about field access inside builder class e.g. like this:
causing compilation error during build:
I've first encounter this error in version of lombok 1.18.12 + android gradle plugin 3.6.2 + gradle 6.1.1. I've tried edge release and got same failure. |
@rspilker I managed to remove the warning by adding |
You can compile your example if you add project.afterEvaluate {
def variants = project.android.applicationVariants + project.android.testVariants
variants.each { var ->
def task = tasks["compile${var.name.capitalize()}JavaWithJavac"]
task.doFirst {
task.options.compilerArgs=[]
}
}
} to your |
Does anyone have a solution for this ? The latest release |
Describe the bug
it appears there are no property assessors generated.
To Reproduce
I've prepared minimal failing build:
https://github.com/darekxan/lomboktest/tree/broken_3.6.1
(sources, build output there)
Expected behavior
This one works, version 3.5.3
https://github.com/darekxan/lomboktest/tree/master
(sources, build output there)
Version info:
The text was updated successfully, but these errors were encountered: