mplushnikov / lombok-intellij-plugin

Lombok Plugin for IntelliJ IDEA
Apache License 2.0
3.11k stars 635 forks source link

Plugin isn't activated for dependencies when current project doesn't use lombok #138

Open grossws opened 9 years ago

grossws commented 9 years ago

I have library with lombok in classpath in provided scope, so library is built, auto-complete works fine and source jar for library contains lombok annotations etc.

I create project without lombok in compile or provided scope and add library mentioned above as dependency auto-complete for getters & setters works fine. But when I navigate to library source, IDEA cannot resolve getter & setter method in library, annotations and their imports because there's no lombok annotation processor in current classpath.

Janmm14 commented 9 years ago

In that case you maybe want to add/create the delomboked sources jar

grossws commented 9 years ago

It can be used as a workaround but looks a little weird. If another dependent project use lombok I'll have lombok annotations in one part (project itself) and delomboked/generated code in another (library). Or have two produce two library versions: for use with lombok-enabled dependent projects and for use with all others.