Thanks to visit codestin.com
Credit goes to chromium.googlesource.com

[maven-release-plugin]  copy for tag v2.0.3
[maven-release-plugin] prepare release v2.0.3
6 files changed
tree: 4d52d858ac24666e8f2e3ffb100ac533ce6883d9
  1. .idea/
  2. annotation/
  3. annotations/
  4. ant/
  5. core/
  6. docgen/
  7. docs/
  8. examples/
  9. idea_plugin/
  10. third_party/
  11. util/
  12. .gitignore
  13. .travis.yml
  14. CONTRIBUTING.md
  15. COPYING
  16. pom.xml
  17. README.md
  18. WORKSPACE
README.md

Error Prone

Catch common Java mistakes as compile-time errors

Build Status Gitter chat

Getting Started

Our documentation for users is at http://errorprone.info

Maven

Add the following configuration to your pom.xml.

<build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <version>3.1</version>
      <configuration>
        <compilerId>javac-with-errorprone</compilerId>
        <forceJavacCompilerUse>true</forceJavacCompilerUse>
      </configuration>
      <dependencies>
        <dependency>
          <groupId>org.codehaus.plexus</groupId>
          <artifactId>plexus-compiler-javac-errorprone</artifactId>
          <version>2.5</version>
        </dependency>
      </dependencies>
    </plugin>
  </plugins>
</build>

Ant

Download the latest release of Error Prone from maven, and add the following javac task in your build.xml.

<javac destdir="build"
  compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"
  encoding="UTF-8" debug="true"
  includeantruntime="false">
  <src path="src"/>
  <compilerclasspath>
    <pathelement location="./path/to/error_prone_ant.jar"/>
  </compilerclasspath>
</javac>

See examples/ant for alternate ant configurations.

Gradle

The gradle plugin is an external contribution. The documentation and code is at tbroyer/gradle-errorprone-plugin

Developing Error Prone

To develop and build Error Prone, see our documentation on the wiki.

Links