Bazel: Use BUILD file to generate the dependencies section of plugin.yml
Currently, you need to declare the dependencies of your plugin in two places.
You need to declare it in your BUILD file, or else your plugin won't compile.
You need to declare it in your plugin's main class's @PluginInfo
annotation, or else occasionally strange things will happen at runtime without any explanation as to why.
Most of the time, we can use the dependencies you put in BUILD to generate the dependencies in your plugin.yml file. The only problem is that its hard to tell the difference programatically between depends and softdepends. However, we don't really use softdepends anywhere because we're fully monorepo and ansiblepilled.