Intellij中使用Lombok编译错误 - 仅在运行构建时
使用Lombok在Intellij运行Gradle构建时,我面临奇怪的错误。在运行构建过程中,Lombok并未解决getters和setter。尽管我没有在Intellij中看到任何汇编错误,但仅在IM运行构建时才出现。
请注意,
我已经启用了注释处理
,我已经安装了Lombok插件,
我在类上添加了@Data @builder
I am facing a weird error when running gradle build in intellij using lombok. Lombok is not resolving getters and setters during running the build. although im not seeing any compilation error in intellij its only appearing when im running build.
Please note that
I have enabled Annotation Processing
I have installed Lombok Plugin
I have added @Data @Builder on the class
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我添加了下面的依赖项,并
较早地解决了我的问题,它只是
compile'org.projectlombok:Lombok'
I added dependencies as below and solved my problem
Earlier it was just
compile 'org.projectlombok:lombok'