From 6ecf0575113c644f9fef5059a37479f971ee7127 Mon Sep 17 00:00:00 2001 From: Ben Lee Date: Tue, 3 Dec 2024 14:48:15 +0000 Subject: [PATCH] Publish robolectric/robolectric-bazel@4.11.1.1 --- .../rules_robolectric/4.11.1.1/MODULE.bazel | 35 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 ++++++++ .../rules_robolectric/4.11.1.1/presubmit.yml | 11 ++++++ .../rules_robolectric/4.11.1.1/source.json | 9 +++++ modules/rules_robolectric/metadata.json | 1 + 5 files changed, 70 insertions(+) create mode 100644 modules/rules_robolectric/4.11.1.1/MODULE.bazel create mode 100644 modules/rules_robolectric/4.11.1.1/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_robolectric/4.11.1.1/presubmit.yml create mode 100644 modules/rules_robolectric/4.11.1.1/source.json diff --git a/modules/rules_robolectric/4.11.1.1/MODULE.bazel b/modules/rules_robolectric/4.11.1.1/MODULE.bazel new file mode 100644 index 00000000000..66041ee200f --- /dev/null +++ b/modules/rules_robolectric/4.11.1.1/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.1", + 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 = "7.12.2") +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.1/patches/module_dot_bazel_version.patch b/modules/rules_robolectric/4.11.1.1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..9693bfa62ef --- /dev/null +++ b/modules/rules_robolectric/4.11.1.1/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.1", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, + ) + diff --git a/modules/rules_robolectric/4.11.1.1/presubmit.yml b/modules/rules_robolectric/4.11.1.1/presubmit.yml new file mode 100644 index 00000000000..28e80311112 --- /dev/null +++ b/modules/rules_robolectric/4.11.1.1/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.1/source.json b/modules/rules_robolectric/4.11.1.1/source.json new file mode 100644 index 00000000000..40ec0e30f39 --- /dev/null +++ b/modules/rules_robolectric/4.11.1.1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-SpQX36NS8fqQy+wW/kjrpgvlaxHurIiqUwnKosipeKU=", + "strip_prefix": "robolectric-bazel-4.11.1.1", + "url": "https://github.com/robolectric/robolectric-bazel/releases/download/4.11.1.1/robolectric-bazel-4.11.1.1.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-GOg1+lvK8cr5qu5j9z+sqjphsCr0wQAjRK8xKc4EooA=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_robolectric/metadata.json b/modules/rules_robolectric/metadata.json index b55a1448b2a..e84bf692454 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.1", "4.12", "4.12.1", "4.12.2",