java,runfiles: runfiles library in @bazel_tools
Also make most targets in `//src/tools/runfiles`
private. The user should depend on
`@bazel_tools//tools/runfiles:$LANG-runfiles`
instead.
See https://github.com/bazelbuild/bazel/issues/4460
RELNOTES[NEW]: java,runfiles: You can now depend on `@bazel_tools//tools/runfiles:java-runfiles` to get a platform-independent runfiles library for Java. See JavaDoc of https://github.com/bazelbuild/bazel/blob/master/src/tools/runfiles/java/com/google/devtools/build/runfiles/Runfiles.java for usage information.
Change-Id: Iba9113453222ae74ce42a324272711f613104891
PiperOrigin-RevId: 182022851
diff --git a/tools/BUILD b/tools/BUILD
index a6d6ac3..24cae21 100644
--- a/tools/BUILD
+++ b/tools/BUILD
@@ -29,6 +29,7 @@
"//tools/osx/crosstool:srcs",
"//tools/test:srcs",
"//tools/python:srcs",
+ "//tools/runfiles:srcs",
"//tools/whitelists:srcs",
"//tools/zip:srcs",
],
@@ -55,6 +56,7 @@
"//tools/platforms:srcs",
"//tools/objc:srcs",
"//tools/python:srcs",
+ "//tools/runfiles:embedded_tools",
"//tools/test:srcs",
"//tools/osx/crosstool:srcs",
"//tools/osx:srcs",