Skip to content

Commit

Permalink
Correct Error Prone setup
Browse files Browse the repository at this point in the history
Add the required dependency when building the ZAP releases, it also uses
Java 8.

Signed-off-by: thc202 <[email protected]>
  • Loading branch information
thc202 committed Jun 28, 2021
1 parent f16f6be commit df9d062
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ allprojects {
project.plugins.withType(JavaPlugin::class) {
dependencies {
"errorprone"("com.google.errorprone:error_prone_core:2.7.1")
if (JavaVersion.current() == JavaVersion.VERSION_1_8) {
// When building ZAP releases it's also used Java 8.
if (JavaVersion.current() == JavaVersion.VERSION_1_8 || System.getenv("ZAP_RELEASE") != null) {
"errorproneJavac"("com.google.errorprone:javac:9+181-r4173-1")
}
}
Expand Down

0 comments on commit df9d062

Please sign in to comment.