diff --git a/src/java_tools/junitrunner/java/com/google/testing/junit/runner/BUILD b/src/java_tools/junitrunner/java/com/google/testing/junit/runner/BUILD index fc90cba193d836..4c4ed5e1b405f1 100644 --- a/src/java_tools/junitrunner/java/com/google/testing/junit/runner/BUILD +++ b/src/java_tools/junitrunner/java/com/google/testing/junit/runner/BUILD @@ -13,6 +13,10 @@ java_library( "BazelTestRunner.java", ], deps = [ + # Testrunner shouldn't be added to compile-time deps of java_library. + # Because of this removing Guava dependecy is a breaking change. + # TODO(b/113524892): Short time before Bazel LTS 7 is cut, remove Guava and release java_tools + "//third_party:guava", # build_cleaner: keep "//src/java_tools/junitrunner/java/com/google/testing/junit/runner/internal", "//src/java_tools/junitrunner/java/com/google/testing/junit/runner/junit4", ],