Do not include com.google.errorprone:error_prone_annotations in war
- it is only needed at build time during errorprone static checks
- it is not required at runtime
- the build added the errorpone annotations pom.xml under META-INF
causing deployment errors when trying to deploy the war to a Maven
repository. This problem was introduced by
Icf4c2469406c977d6e886d7d77aac28b927c47d3. This was found by
bisecting the git history from v3.9.0 to 06a2726fba.
Release-Notes: skip
Change-Id: I8aaa7098770625bfde43fa5fabfae82440d4e5f7
diff --git a/lib/errorprone/BUILD b/lib/errorprone/BUILD
index 456860a..f95a430 100644
--- a/lib/errorprone/BUILD
+++ b/lib/errorprone/BUILD
@@ -3,6 +3,7 @@
java_library(
name = "annotations",
data = ["//lib:LICENSE-Apache2.0"],
+ neverlink = 1,
visibility = ["//visibility:public"],
exports = ["@error-prone-annotations//jar"],
)