bazel-multiversion 支持相同的3rdparty依赖关系的多个版本的bazelbuild / rules_jvm_external的替代方案。 入门 # Step 1: Clone repo git clone https://github.com/twitter/bazel-multiversion cd bazel-multiversion # Step 2: Build and run code with different versions of Guava cd multiversion-example/ bazel build tricky/... bazel run tricky/user/src/main/scala/bincompat:NeedsGuava24 bazel run tricky/user/src/main/scala/bincompat: