title: Annotation processor doesn't run in plain Java
body: <p>I am trying to make annotation processor in plain java (not android api), but anytime I run my main function, processor is supposed to stop build process because of error, but it doesn't.</p>
  
  <p>My project structure is:</p>
  
  <pre><code>Root
    |-&gt; core (all features including annotations)
    |-&gt; annotation-processors (just annotation processor with set-up META-INF and processor class)
    |-&gt; example (main void with class that is annotated with @Disable - annotation declared in core, this should stop compiler)
  </code></pre>
  
  <p>Annotation processor class is</p>
  
  <pre><code>@SupportedAnnotationTypes("jacore.support.Disable")
  @SupportedSourceVersion(SourceVersion.RELEASE_7)
  public class Processor extends AbstractProcessor {
  
      private Filer filer;
      private Messager messager;
      private Elements elements;
  
      @Override
      public synchronized void init(ProcessingEnvironment processingEnvironment) {
          this.filer = processingEnvironment.getFiler();
          this.messager = processingEnvironment.getMessager();
          this.elements = processingEnvironment.getElementUtils();
      }
  
      @Override
      public boolean process(Set&lt;? extends TypeElement&gt; set, RoundEnvironment roundEnvironment) {
          for (Element element : roundEnvironment.getElementsAnnotatedWith(Disable.class)) {
              if (element.getKind() != ElementKind.CLASS) {
                  messager.printMessage(Diagnostic.Kind.ERROR, "@Activity should be on top of classes");
                  return false;
              }
          }
  
          return true;
      }
  
      @Override
      public Set&lt;String&gt; getSupportedAnnotationTypes() {
          return Collections.singleton(Disable.class.getCanonicalName());
      }
  
      @Override
      public SourceVersion getSupportedSourceVersion() {
          return SourceVersion.latestSupported();
      }
  }
  </code></pre>
  
  <p>I am using InteliJ IDEA and annotation processors are enabled in settings.
  Annotation processor class may seem stupid, I really want to make it run, then I will improve features of it.</p>
  
  <p>Edit:
  There is build.gradle of 'example' module</p>
  
  <pre><code>plugins {
      id 'java'
  }
  
  group 'sk.runner'
  version '1.0-SNAPSHOT'
  
  sourceCompatibility = 1.8
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      testCompile group: 'junit', name: 'junit', version: '4.12'
      implementation project(":core")
      annotationProcessor project(":annotation-processors")
  }
  </code></pre>