On recent bazel versions it's trivial to apply package specific checks.
Provide custom java toolchain with all error prone warnings activated.
The list of all error prone warning was borrowed from here: [1].
For compatibility reasons with Bazel releases two java_toolchains are
added for now:
* Compatible with Bazel 0.16.1:
error_prone_warnings_toolchain_bazel_0.16 compatible with 0.16.1
* Compatible with Bazel@HEAD:
error_prone_warnings_toolchain
Test Plan:
$ bazel build --java_toolchain //tools:error_prone_warnings_toolchain \
//...
[1] https://github.com/bazelbuild/BUILD_file_generator/blob/master/tools/bazel_defs/java.bzl
Change-Id: I9a098c2d43cbfd87dbc261ce2cf9085dec3431e8