From 2b36efa93306addae16a7a58deeca4d8d9b6a57e Mon Sep 17 00:00:00 2001 From: Ben Lee Date: Tue, 3 Dec 2024 19:59:02 +0000 Subject: [PATCH] Publish robolectric/robolectric-bazel@4.11.1.2 --- .../rules_robolectric/4.11.1.2/MODULE.bazel | 35 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 ++++++++ .../rules_robolectric/4.11.1.2/presubmit.yml | 11 ++++++ .../rules_robolectric/4.11.1.2/source.json | 9 +++++ modules/rules_robolectric/metadata.json | 1 + 5 files changed, 70 insertions(+) create mode 100644 modules/rules_robolectric/4.11.1.2/MODULE.bazel create mode 100644 modules/rules_robolectric/4.11.1.2/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_robolectric/4.11.1.2/presubmit.yml create mode 100644 modules/rules_robolectric/4.11.1.2/source.json diff --git a/modules/rules_robolectric/4.11.1.2/MODULE.bazel b/modules/rules_robolectric/4.11.1.2/MODULE.bazel new file mode 100644 index 00000000000..ff3941c94cc --- /dev/null +++ b/modules/rules_robolectric/4.11.1.2/MODULE.bazel @@ -0,0 +1,35 @@ +"Bazel dependencies" + +module( + name = "rules_robolectric", + # Note: the publish-to-BCR app will patch this line to stamp the version being published. + version = "4.11.1.2", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, +) + +robolectric_repository_extensions = use_extension("//bazel:extensions.bzl", "robolectric_repository_extensions") +use_repo( + robolectric_repository_extensions, + "org_robolectric_android_all_instrumented_10_robolectric_5803371_i7", + "org_robolectric_android_all_instrumented_11_robolectric_6757853_i7", + "org_robolectric_android_all_instrumented_12_1_robolectric_8229987_i7", + "org_robolectric_android_all_instrumented_12_robolectric_7732740_i7", + "org_robolectric_android_all_instrumented_13_robolectric_9030017_i7", + "org_robolectric_android_all_instrumented_14_robolectric_10818077_i7", + "org_robolectric_android_all_instrumented_15_robolectric_12650502_i7", + "org_robolectric_android_all_instrumented_5_0_2_r3_robolectric_r0_i7", + "org_robolectric_android_all_instrumented_5_1_1_r9_robolectric_r2_i7", + "org_robolectric_android_all_instrumented_6_0_1_r3_robolectric_r1_i7", + "org_robolectric_android_all_instrumented_7_0_0_r1_robolectric_r1_i7", + "org_robolectric_android_all_instrumented_7_1_0_r7_robolectric_r1_i7", + "org_robolectric_android_all_instrumented_8_0_0_r4_robolectric_r1_i7", + "org_robolectric_android_all_instrumented_8_1_0_robolectric_4611349_i7", + "org_robolectric_android_all_instrumented_9_robolectric_4913185_2_i7", +) + +bazel_dep(name = "rules_java", version = "8.6.0") +bazel_dep(name = "bazel_skylib", version = "1.6.1") +bazel_dep(name = "rules_python", version = "0.37.2") + +bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True) diff --git a/modules/rules_robolectric/4.11.1.2/patches/module_dot_bazel_version.patch b/modules/rules_robolectric/4.11.1.2/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..6c704db9481 --- /dev/null +++ b/modules/rules_robolectric/4.11.1.2/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -2,9 +2,9 @@ + + module( + name = "rules_robolectric", + # Note: the publish-to-BCR app will patch this line to stamp the version being published. +- version = "0.0.0", ++ version = "4.11.1.2", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, + ) + diff --git a/modules/rules_robolectric/4.11.1.2/presubmit.yml b/modules/rules_robolectric/4.11.1.2/presubmit.yml new file mode 100644 index 00000000000..28e80311112 --- /dev/null +++ b/modules/rules_robolectric/4.11.1.2/presubmit.yml @@ -0,0 +1,11 @@ +matrix: + platform: ["macos", "ubuntu2004"] + bazel: ["6.x", "7.x"] + +tasks: + verify_targets: + name: "Verify build targets" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@rules_robolectric//bazel:android-all" diff --git a/modules/rules_robolectric/4.11.1.2/source.json b/modules/rules_robolectric/4.11.1.2/source.json new file mode 100644 index 00000000000..e29a5fcc1d9 --- /dev/null +++ b/modules/rules_robolectric/4.11.1.2/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-jmAdke+YSSpEdsZvHOnAnveRGbVR01GTPesMa1mabKc=", + "strip_prefix": "robolectric-bazel-4.11.1.2", + "url": "https://github.com/robolectric/robolectric-bazel/releases/download/4.11.1.2/robolectric-bazel-4.11.1.2.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-QXtlf9bBHYqTERjmTBJ4V0vmofokIlAPANvR5ByLJ8s=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_robolectric/metadata.json b/modules/rules_robolectric/metadata.json index b55a1448b2a..8113b7c4d81 100644 --- a/modules/rules_robolectric/metadata.json +++ b/modules/rules_robolectric/metadata.json @@ -17,6 +17,7 @@ "4.10.3", "4.11", "4.11.1", + "4.11.1.2", "4.12", "4.12.1", "4.12.2",