Gradle plugin for integrating Java annotations processors
Latest commit 72c682d Feb 2, 2017 @chrisalice chrisalice committed on GitHub Merge pull request #57 from palantir/issue56
Default Eclipse to write to generated/java, not bin/generated/java

Gradle Processors

A plugin for Gradle that cleans up integration of Java 6+ annotation processors with the Eclipse, IDEA and FindBugs plugins.

GitHub release Travis license


To use it, add the following to your projects' build.gradle file:

plugins {
  id 'org.inferred.processors' version '<LATEST VERSION>'

You can now include annotation processors with the processor dependency type:

dependencies {
  processor ''

The eclipse and idea tasks will now configure your IDE to run annotation processors as part of their regular compilation. Alternatively, you can continue to open your build.gradle file directly from within IntelliJ.

Gradle 2.0 and earlier

For users of Gradle 2.0 and earlier, the plugins API is not available. Instead, add the following to your top-level build.gradle file:

buildscript {
  repositories {
    maven {
      url ''
  dependencies {
    classpath '<LATEST VERSION>'

And just the apply directive to your subproject build.gradle files:

apply plugin: 'org.inferred.processors'

You can now include annotation processors with the processor dependency type, as above.

Building from source

To build the project from source, run ./gradlew build, or gradlew.bat build on Windows, in the root directory of your checkout. You will need Java installed.


Copyright 2015 Palantir Technologies, Inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.