title: Getting compilation error while using @Slf4j in Lombok in Eclipse
body: <p>Building the project using gradle in  eclipse  after Using @Slf4j annotation of lombok is throwing below error :</p>
  
  <p><code>Task :compileJava FAILED
  </code>
  <code>error: cannot find symbol
          log.trace("logging now");
          ^
    symbol:   variable log
  </code></p>
  
  <p>But it is generating the .class file with the log variable correctly : <code>private static final Logger log = LoggerFactory.getLogger(NetsuiteWebSecurityConfig.class);</code></p>
  
  <p>There is no problem with the @Data lombok annotation. It is generating getters/setters in .class file and also not throwing any error .</p>
  
  <p>Note : i referred this <a href="https://stackoverflow.com/questions/3418865/cannot-make-project-lombok-work-on-eclipse-helios/3425327#3425327">Cannot make Project Lombok work on Eclipse (Helios)</a> 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 </p>