Add preliminary support for `exe` packaging type (#908)
This is to allow fetching prebuilt binaries (such as
[protoc](https://repo1.maven.org/maven2/com/google/protobuf/protoc/)) in
the same way as other artifacts served by maven repositories.
Background: particularly useful for defining (lang) proto toolchains,
without having to compile nor manually maintain repository mappings
(checksums, etc.) for all supported platforms.
diff --git a/WORKSPACE b/WORKSPACE
index b91952e..ce7ff05 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -253,6 +253,10 @@
group = "com.google.apis",
version = "v1-rev235-1.25.0",
),
+ # https://github.com/bazelbuild/rules_jvm_external/issues/907
+ # Any two platforms to ensure that it doesn't work _only_ under the host operating system
+ "com.google.protobuf:protoc:exe:linux-x86_64:3.21.12",
+ "com.google.protobuf:protoc:exe:osx-aarch_64:3.21.12",
],
generate_compat_repositories = True,
maven_install_json = "//tests/custom_maven_install:regression_testing_install.json",