Gradle: Lombok is not processing: cannot find symbol

4,017 views
Skip to first unread message

Rüdiger Schulz

unread,
Oct 16, 2020, 6:40:52 AM10/16/20
to Project Lombok

Hey everybody,

I have an app project and a library being used by that project, and both are using lombok.

Currently, I'm struggling with upgrading plugins and dependencies, and it's quite hard to figure out a reason.

The app project and the library used to work fine with each other, but now I'm in a state that the main project is not compiling anymore when I use a certain version of my library. Even with bisecting, I was not yet able to find out what change in the library causes the failure. So I also don't know how to create a minimal, failing configuration.

What's happening is that none of the java classes in the app project get their lombok annotations processed anymore. So even a static factory method in a simple data class is not compiling anymore ("cannot find symbol").

I browsed bug reports on lombok github, both the gradle plugins and stack overflow and the best I found was "I don't know what happened but now it's working".

I don't get any useful hints or stack traces during the build regarding the annotation processing, even on debug level.

So I'm really puzzled.

How can an external dependency have any impact on the whole lombok annotation processing?

How can I find out what's happening?





Floris Kraak

unread,
Oct 16, 2020, 10:19:54 AM10/16/20
to project...@googlegroups.com
My first thought is that that library includes Lombok as a transitive dependency, creating a conflict with the version in the main app.

The other option is the annotation processor configuration. If you have more than one annotation processor, such as Lombok with mapstruct, it's possible that the presence of one interferes with the operation of the other. There have been some changes in the package structure because of that..

--
You received this message because you are subscribed to the Google Groups "Project Lombok" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-lombo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/project-lombok/acdcd00e-abbd-4dfb-abf8-6daaa040e3a7n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages