diff --git a/BUILD.bazel b/BUILD.bazel index ef1cddb73e3..0a43ee3e452 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -31,9 +31,6 @@ platform( java_library( name = "test_deps", - jvm_flags = [ - "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED", - ], visibility = ["//visibility:public"], exports = [ "@maven//:junit_junit", @@ -50,3 +47,11 @@ java_library( "@maven//:org_mockito_mockito_junit_jupiter", ], ) + +java_binary( + name = "test_deps_bin", + deps = [":test_deps"], + jvm_flags = [ + "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED", + ], +) \ No newline at end of file