Gazelle support for junit4
Hey! I am trying out gazelle java extension for https://github.com/harness/harness-core
After running the tool, I noticed that the java_test_suite it generates has runner5 hardcoded and its adds respective runtime_deps also. We are still using junit4 -- can I somehow configure it to generate runner for junit4 without any runtime deps?
It would be possible to determine which runner to use by looking for the presence of the org.junit.Test annotation in a test file. If it's there, the chances are that this is a junit4 test.
Having said that, junit5 can run those tests with the vintage runner, so we should also provide a config option in build files that allows one to determine the runner to use.