To support alternative java_toolchains (e.g.: to activate all error
prone warnings) we should not directly depend on @local_jdk, but use
@bazel_tools//tools/jdk:current_java_runtime to get the configured JDK
instead.
See this issue for more context: [1].
[1] https://github.com/bazelbuild/bazel/issues/5997
Inspired-by: Liam Miller-Cushon <cushon@google.com>
Change-Id: I66e1215a01f98e435e514a5442533ab15eaebd35