Building the project using gradle in eclipse after Using @Slf4j annotation of lombok is throwing below error :
Task :compileJava FAILED
error: cannot find symbol
log.trace("logging now");
^
symbol: variable log
But it is generating the .class file with the log variable correctly : private static final Logger log = LoggerFactory.getLogger(NetsuiteWebSecurityConfig.class);
There is no problem with the @Data lombok annotation. It is generating getters/setters in .class file and also not throwing any error .
Note : i referred this Cannot make Project Lombok work on Eclipse (Helios) for lombok installation . I can say lombok is working because it is generating the code in .class file . Not sure why it is failing while giving gradle build