diff --git a/.bazelrc b/.bazelrc index 6ebc08d0dc3..1fc9c565a81 100644 --- a/.bazelrc +++ b/.bazelrc @@ -20,7 +20,8 @@ run --color=yes build --color=yes build --enable_platform_specific_config - +build --jvmopt='--add-opens=java.base/java.lang.reflect=ALL-UNNAMED' +test --jvmopt='--add-opens=java.base/java.lang.reflect=ALL-UNNAMED' test --action_env=TEST_TMPDIR=/tmp test --experimental_strict_java_deps=warn diff --git a/BUILD.bazel b/BUILD.bazel index 0a43ee3e452..33888f8b045 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -46,12 +46,4 @@ java_library( "@maven//:org_openjdk_jmh_jmh_generator_annprocess", "@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