Using load("@contrib_rules_jvm//java:defs.bzl", "java_test_suite") with junit4, gazelle removes all runtime_deps, but keeps them if I import a junit5 dependency. I assume this is probably unintentional since gazelle has no way to verify if a runtime_dep is valid or not.
Using:
rules_jvm-0.27.0
bazel_gazelle-v0.42
bazel v7.6.1