From dc9b6ba833fa2eee0f9f281cb308f394d9193dc3 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Sat, 21 Dec 2024 15:11:58 +0100 Subject: [PATCH] Add grpc-java --- modules/googleapis-grpc-cc/0.1.0/MODULE.bazel | 14 ++++++++++++++ .../0.1.0/overlay/MODULE.bazel | 1 + modules/googleapis-grpc-cc/0.1.0/presubmit.yml | 9 +++++++++ modules/googleapis-grpc-cc/0.1.0/source.json | 7 +++++++ modules/googleapis-grpc-cc/metadata.json | 16 ++++++++++++++++ modules/googleapis-grpc-java/0.1.0/MODULE.bazel | 14 ++++++++++++++ .../0.1.0/overlay/MODULE.bazel | 1 + modules/googleapis-grpc-java/0.1.0/presubmit.yml | 9 +++++++++ modules/googleapis-grpc-java/0.1.0/source.json | 7 +++++++ modules/googleapis-grpc-java/metadata.json | 16 ++++++++++++++++ .../overlay/private/extensions/constants.bzl | 2 +- .../overlay/tests/bcr/BUILD.bazel | 5 +++++ .../0.0.0-20241220-5e258e33/source.json | 4 ++-- 13 files changed, 102 insertions(+), 3 deletions(-) create mode 100644 modules/googleapis-grpc-cc/0.1.0/MODULE.bazel create mode 120000 modules/googleapis-grpc-cc/0.1.0/overlay/MODULE.bazel create mode 100644 modules/googleapis-grpc-cc/0.1.0/presubmit.yml create mode 100644 modules/googleapis-grpc-cc/0.1.0/source.json create mode 100644 modules/googleapis-grpc-cc/metadata.json create mode 100644 modules/googleapis-grpc-java/0.1.0/MODULE.bazel create mode 120000 modules/googleapis-grpc-java/0.1.0/overlay/MODULE.bazel create mode 100644 modules/googleapis-grpc-java/0.1.0/presubmit.yml create mode 100644 modules/googleapis-grpc-java/0.1.0/source.json create mode 100644 modules/googleapis-grpc-java/metadata.json diff --git a/modules/googleapis-grpc-cc/0.1.0/MODULE.bazel b/modules/googleapis-grpc-cc/0.1.0/MODULE.bazel new file mode 100644 index 00000000000..843ebe94398 --- /dev/null +++ b/modules/googleapis-grpc-cc/0.1.0/MODULE.bazel @@ -0,0 +1,14 @@ +module( + name = "googleapis-grpc-cc", + version = "0.1.0", + bazel_compatibility = [">=7.2.1"], +) + +bazel_dep(name = "googleapis", version = "0.0.0-20241220-5e258e33") +bazel_dep(name = "grpc", version = "1.66.0.bcr.2") + +switched_rules = use_extension("@googleapis//private/extensions:switched_rules.bzl", "switched_rules") +switched_rules.register( + name = "cc_grpc_library", + file = "@grpc//bazel:cc_grpc_library.bzl", +) diff --git a/modules/googleapis-grpc-cc/0.1.0/overlay/MODULE.bazel b/modules/googleapis-grpc-cc/0.1.0/overlay/MODULE.bazel new file mode 120000 index 00000000000..9b599e3ad9c --- /dev/null +++ b/modules/googleapis-grpc-cc/0.1.0/overlay/MODULE.bazel @@ -0,0 +1 @@ +../MODULE.bazel \ No newline at end of file diff --git a/modules/googleapis-grpc-cc/0.1.0/presubmit.yml b/modules/googleapis-grpc-cc/0.1.0/presubmit.yml new file mode 100644 index 00000000000..fd9c465d89e --- /dev/null +++ b/modules/googleapis-grpc-cc/0.1.0/presubmit.yml @@ -0,0 +1,9 @@ +tasks: + verify_targets: + name: Empty test + platform: ubuntu2404 + bazel: 8.x + build_flags: + - "--nobuild" + build_targets: + - "//..." diff --git a/modules/googleapis-grpc-cc/0.1.0/source.json b/modules/googleapis-grpc-cc/0.1.0/source.json new file mode 100644 index 00000000000..2434195e9a9 --- /dev/null +++ b/modules/googleapis-grpc-cc/0.1.0/source.json @@ -0,0 +1,7 @@ +{ + "integrity": "sha256-hznHbmgfkAkjuQDJ3w73XPQh05yrtUZQxLmtGbanbYU=", + "url": "https://github.com/fmeum/bazel-central-registry/releases/download/v1.0.0/empty.zip", + "overlay": { + "MODULE.bazel": "sha256-+6YcOMfETtd1CUAzcxFHtQvJtllgUrx5kWElgP6gYOs=" + } +} diff --git a/modules/googleapis-grpc-cc/metadata.json b/modules/googleapis-grpc-cc/metadata.json new file mode 100644 index 00000000000..ed2c966d2e4 --- /dev/null +++ b/modules/googleapis-grpc-cc/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/googleapis/googleapis", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:googleapis/googleapis" + ], + "versions": [ + "0.1.0" + ], + "yanked_versions": {} +} diff --git a/modules/googleapis-grpc-java/0.1.0/MODULE.bazel b/modules/googleapis-grpc-java/0.1.0/MODULE.bazel new file mode 100644 index 00000000000..ece91188c61 --- /dev/null +++ b/modules/googleapis-grpc-java/0.1.0/MODULE.bazel @@ -0,0 +1,14 @@ +module( + name = "googleapis-grpc-java", + version = "0.1.0", + bazel_compatibility = [">=7.2.1"], +) + +bazel_dep(name = "googleapis", version = "0.0.0-20241220-5e258e33") +bazel_dep(name = "grpc-java", version = "1.66.0") + +switched_rules = use_extension("@googleapis//private/extensions:switched_rules.bzl", "switched_rules") +switched_rules.register( + name = "java_grpc_library", + file = "@grpc-java//:java_grpc_library.bzl", +) diff --git a/modules/googleapis-grpc-java/0.1.0/overlay/MODULE.bazel b/modules/googleapis-grpc-java/0.1.0/overlay/MODULE.bazel new file mode 120000 index 00000000000..9b599e3ad9c --- /dev/null +++ b/modules/googleapis-grpc-java/0.1.0/overlay/MODULE.bazel @@ -0,0 +1 @@ +../MODULE.bazel \ No newline at end of file diff --git a/modules/googleapis-grpc-java/0.1.0/presubmit.yml b/modules/googleapis-grpc-java/0.1.0/presubmit.yml new file mode 100644 index 00000000000..fd9c465d89e --- /dev/null +++ b/modules/googleapis-grpc-java/0.1.0/presubmit.yml @@ -0,0 +1,9 @@ +tasks: + verify_targets: + name: Empty test + platform: ubuntu2404 + bazel: 8.x + build_flags: + - "--nobuild" + build_targets: + - "//..." diff --git a/modules/googleapis-grpc-java/0.1.0/source.json b/modules/googleapis-grpc-java/0.1.0/source.json new file mode 100644 index 00000000000..e70553d611f --- /dev/null +++ b/modules/googleapis-grpc-java/0.1.0/source.json @@ -0,0 +1,7 @@ +{ + "integrity": "sha256-hznHbmgfkAkjuQDJ3w73XPQh05yrtUZQxLmtGbanbYU=", + "url": "https://github.com/fmeum/bazel-central-registry/releases/download/v1.0.0/empty.zip", + "overlay": { + "MODULE.bazel": "sha256-6OS1YB5nWgVsNnucanTpPJ9n+eF2Xy2VS/sJF53lIs0=" + } +} diff --git a/modules/googleapis-grpc-java/metadata.json b/modules/googleapis-grpc-java/metadata.json new file mode 100644 index 00000000000..ed2c966d2e4 --- /dev/null +++ b/modules/googleapis-grpc-java/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/googleapis/googleapis", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:googleapis/googleapis" + ], + "versions": [ + "0.1.0" + ], + "yanked_versions": {} +} diff --git a/modules/googleapis/0.0.0-20241220-5e258e33/overlay/private/extensions/constants.bzl b/modules/googleapis/0.0.0-20241220-5e258e33/overlay/private/extensions/constants.bzl index 8107a7bda3e..ebdbcd9f33b 100644 --- a/modules/googleapis/0.0.0-20241220-5e258e33/overlay/private/extensions/constants.bzl +++ b/modules/googleapis/0.0.0-20241220-5e258e33/overlay/private/extensions/constants.bzl @@ -17,7 +17,7 @@ RULE_TO_FLAVOR = { "java_gapic_assembly_gradle_pkg": None, "java_gapic_library": None, "java_gapic_test": None, - "java_grpc_library": None, + "java_grpc_library": "grpc-java", "java_proto_library": "java", "moved_proto_library": None, "nodejs_gapic_assembly_pkg": None, diff --git a/modules/googleapis/0.0.0-20241220-5e258e33/overlay/tests/bcr/BUILD.bazel b/modules/googleapis/0.0.0-20241220-5e258e33/overlay/tests/bcr/BUILD.bazel index 4399bef3983..fa2181b756c 100644 --- a/modules/googleapis/0.0.0-20241220-5e258e33/overlay/tests/bcr/BUILD.bazel +++ b/modules/googleapis/0.0.0-20241220-5e258e33/overlay/tests/bcr/BUILD.bazel @@ -20,6 +20,11 @@ alias( actual = "@googleapis//google/spanner/v1:spanner_cc_grpc", ) +alias( + name = "spanner_java_grpc", + actual = "@googleapis//google/spanner/v1:spanner_java_grpc", +) + cc_proto_library_fails_with_message_test( name = "bytestream_cc_proto_library_fails_with_message_test", target_under_test = "@googleapis//google/bytestream:bytestream_cc_proto", diff --git a/modules/googleapis/0.0.0-20241220-5e258e33/source.json b/modules/googleapis/0.0.0-20241220-5e258e33/source.json index 3c5104607fa..893e28bc2ef 100644 --- a/modules/googleapis/0.0.0-20241220-5e258e33/source.json +++ b/modules/googleapis/0.0.0-20241220-5e258e33/source.json @@ -6,11 +6,11 @@ "MODULE.bazel": "sha256-MlXxZ/4UxwoscsQihmhKKGw1Cb6P0wAVqvQG56+1n1w=", "extensions.bzl": "sha256-jj4EKrYrYsALa4wi11LYl7yULEWhIDr3HyKNnL6LFUE=", "private/extensions/BUILD.bazel": "sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=", - "private/extensions/constants.bzl": "sha256-O+GJD3XKyq0NoXwTK9Dnocne2uWMB62LlUDPw0BjdWc=", + "private/extensions/constants.bzl": "sha256-Lr2u+OnTl5Y+9HUTLM4CQai8ohnBf9AoVAOv5JERgZs=", "private/extensions/fail_macro.bzl": "sha256-Ux6k9i7qKn7Y0gT1LFnHZiTGuPid7m1p3PncsnK8/iU=", "private/extensions/switched_rules.bzl": "sha256-LkAQ/CEVSLYhHb0k1Ym4uBRC0yf6NQugxPZjPZteXMg=", "tests/bcr/.bazelrc": "sha256-hFZT+gits3VtXcUkKuh3NCEC9FgBNGuNxaOVCuOiFPk=", - "tests/bcr/BUILD.bazel": "sha256-w0YhOe+5oJ32nvhp4TdbNJqVPSoRRztTKmyFv1mbqTc=", + "tests/bcr/BUILD.bazel": "sha256-s/s6ZF/2oc55YwhZRyry99R/FUV8Z43lOata3M8a7yQ=", "tests/bcr/MODULE.bazel": "sha256-PvqkV0oO2SHSkDNVsvcFawocQcrwsVrjL/QiAZ6h+gM=", "tests/bcr/failure_test.bzl": "sha256-QV38fwhaAPQStLQr06YGR1NDE/lsgnTs4cDjR/oDpl8=" }