title: Gradle build fails on Lombok annotated classes
body: <p>I have a JHipster project in which I have added dependency for Lombok in build.gradle:</p>
  
  <pre><code>compile group: 'org.projectlombok', name: 'lombok', version: lombok_version
  </code></pre>
  
  <p>And I have the Lombok plugin stalled for IntelliJ.  I've turned on annotation processing in IntelliJ, I can build without errors from the IntelliJ IDE, but when I try to build from the command line I get build errors.  It seems like Gradle is not processing the annotations and can't find the getter/setter and log declarations. The project also runs without any kind of errors. </p>
  
  <p>Command Line:</p>
  
  <pre><code>./gradlew build
  </code></pre>
  
  <p>Errors :       </p>
  
  <pre><code>/Users/.../source/v4.0/src/main/java/com/.../service/MyService.java:145: error: cannot find symbol
          log.info("Security Context: " + SecurityUtils.getCurrentUserLogin());
          ^
    symbol:   variable log
    location: class MyService
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>/Users/.../source/v4.0/src/main/java/com/.../service/MyService.java:105: error: cannot find symbol
          myClass.setDescription(description);
                          ^
    symbol:   method setDescription(String)
    location: variable myClass of type MyClass
  </code></pre>
  
  <p>Service Class:</p>
  
  <pre><code>import lombok.extern.slf4j.Slf4j; 
  import org.springframework.stereotype.Service;
  
  @Service
  @Slf4j
  public class MyService {      
      public void someMethod(){
          log.debug("Security Context: " + SecurityUtils.getCurrentUserLogin());
          MyClass myCLass = new MyClass();
          myClass.setDescription(description);
      }
  }
  </code></pre>
  
  <p>Entity Class:</p>
  
  <pre><code>import lombok.Getter;
  import lombok.NoArgsConstructor;
  import lombok.Setter;
  import javax.persistence.Entity;
  import javax.persistence.Table;
  
  @Entity
  @Table(name="t_juror_file_update")
  @Getter
  @Setter
  @NoArgsConstructor
  public class MyClass {
  
      private String description;
  
  }
  </code></pre>
  
  <p>I've been trying to figure this out for hours, but totally stuck. Any help would be appreciated.</p>