From c328bde66e5240b13b3a996800927b15ee98cee6 Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Tue, 10 Oct 2023 14:35:16 -0700 Subject: [PATCH] Update installation instructions to include `javax.inject` https://github.com/google/error-prone/issues/3897 --- docs/installation.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 3940eb8e912..5973a795aaa 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -124,15 +124,17 @@ Download the following artifacts from maven: * `error_prone_core-${EP_VERSION?}-with-dependencies.jar` from [https://repo1.maven.org/maven2/com/google/errorprone/error_prone_core/](https://repo1.maven.org/maven2/com/google/errorprone/error_prone_core/) -* `dataflow-errorprone-${DATAFLOW_VERSION}.jar` from - [https://repo1.maven.org/maven2/org/checkerframework/dataflow-errorprone/](https://repo1.maven.org/maven2/org/checkerframework/dataflow-errorprone/) +* `dataflow-errorprone-${DATAFLOW_VERSION?}.jar` from + [https://repo1.maven.org/maven2/io/github/eisop/dataflow-errorprone/](https://repo1.maven.org/maven2/io/github/eisop/dataflow-errorprone/) +* [`https://repo1.maven.org/maven2/javax/inject/javax.inject/1/javax.inject-1.jar`](https://repo1.maven.org/maven2/javax/inject/javax.inject/1/javax.inject-1.jar) and add the following javac task to your project's `build.xml` file: ```xml - + + @@ -189,7 +191,8 @@ Example: ```bash wget https://repo1.maven.org/maven2/com/google/errorprone/error_prone_core/${EP_VERSION?}/error_prone_core-${EP_VERSION?}-with-dependencies.jar -wget https://repo1.maven.org/maven2/org/checkerframework/dataflow-errorprone/3.15.0/dataflow-errorprone-3.15.0.jar +wget https://repo1.maven.org/maven2/io/github/eisop/dataflow-errorprone/${DATAFLOW_VERSION?}/dataflow-errorprone-${DATAFLOW_VERSION?}.jar +wget https://repo1.maven.org/maven2/javax/inject/javax.inject/1/javax.inject-1.jar javac \ -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \ -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \ @@ -202,7 +205,7 @@ javac \ -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \ -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED \ -XDcompilePolicy=simple \ - -processorpath error_prone_core-${EP_VERSION?}-with-dependencies.jar:dataflow-errorprone-3.15.0.jar \ + -processorpath error_prone_core-${EP_VERSION?}-with-dependencies.jar:dataflow-errorprone-${DATAFLOW_VERSION?}.jar:javax.inject-1.jar \ '-Xplugin:ErrorProne -XepDisableAllChecks -Xep:CollectionIncompatibleType:ERROR' \ ShortSet.java ```