Add `TestParameterInjector` to Bazel.
[`TestParameterInjector`](https://github.com/google/TestParameterInjector) has
recently been released. This library offers a much more convenient way to
parameterize JUnit tests than `org.junit.runners.Parameterized`, which
currently is the only option.
@@ -318,6 +318,50 @@ dist_http_archive(
patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
)
+http_archive(
+ name = "org_snakeyaml",
+ sha256 = "fd0e0cc6c5974fc8f08be3a15fb4a59954c7dd958b5b68186a803de6420b6e40",
+ strip_prefix = "asomov-snakeyaml-b28f0b4d87c6",
+ build_file_content = """
+java_library(
+ name = "snakeyaml",
+ testonly = True,
+ srcs = glob(["src/main/**/*.java"]),
+ visibility = ["@com_google_testparameterinjector//:__pkg__"],
+)
+""",
+ urls = [
+ "https://mirror.bazel.build/bitbucket.org/asomov/snakeyaml/get/snakeyaml-1.28.tar.gz",
+ "https://bitbucket.org/asomov/snakeyaml/get/snakeyaml-1.28.tar.gz",
+ ],
+)
+
+
+http_archive(
+ name = "com_google_testparameterinjector",
+ sha256 = "562a0e87eb413a7dcad29ebc8d578f6f97503473943585b051c1398a58189b06",
+ strip_prefix = "TestParameterInjector-1.0",
+ build_file_content = """
+java_library(
+ name = "testparameterinjector",
+ testonly = True,
+ srcs = glob(["src/main/**/*.java"]),
+ deps = [
+ "@org_snakeyaml//:snakeyaml",
+ "@//third_party:auto_value",
+ "@//third_party:guava",
+ "@//third_party:junit4",
+ "@//third_party/protobuf:protobuf_java",
+ ],
+ visibility = ["@//third_party:__pkg__"],
+)
+""",
+ urls = [
+ "https://mirror.bazel.build/github.com/google/TestParameterInjector/archive/v1.0.tar.gz",
+ "https://github.com/google/TestParameterInjector/archive/v1.0.tar.gz",
+ ],
+)
+
# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
dist_http_archive(
name = "rules_cc",
