Skip to content

Commit

Permalink
google#1185 Notes about other annotation processors
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardBradley committed Nov 23, 2018
1 parent 60b5165 commit ec766f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Edit your `pom.xml` file to add settings to the maven-compiler-plugin:
<artifactId>error_prone_core</artifactId>
<version>2.3.3-SNAPSHOT</version>
</path>
<!-- Add other annotation processors and Error Prone custom checks here if needed -->
</annotationProcessorPaths>
</configuration>
</plugin>
Expand Down Expand Up @@ -142,7 +143,7 @@ and add the following javac task to your project's `build.xml` file:
<path id="processorpath.ref">
<pathelement location="${user.home}/.m2/repository/com/google/errorprone/error_prone_core/2.3.3-SNAPSHOT/error_prone_core-2.3.3-SNAPSHOT-with-dependencies.jar"/>
<pathelement location="${user.home}/.m2/repository/com/google/code/findbugs/jFormatString/3.0.0/jFormatString-3.0.0.jar"/>
<!-- Add annotation processors and Error Prone custom checks here if needed -->
<!-- Add other annotation processors and Error Prone custom checks here if needed -->
</path>

<javac srcdir="src" destdir="build" fork="yes" includeantruntime="no">
Expand Down Expand Up @@ -205,6 +206,8 @@ Error Prone supports the
API, and can be used with JDK 9, 10 and 11 by adding Error Prone to the
`-processorpath` and setting the `-Xplugin` flag.

Add any other annotation processors and Error Prone custom checks to the `-processorpath` as needed.

Example:

```bash
Expand Down

0 comments on commit ec766f5

Please sign in to comment.