Skip to content

Gazelle removes runtime_deps from junit4 test suites #337

@Edarke

Description

@Edarke

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions