Skip to content

Commit

Permalink
Add grpc-java
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Dec 21, 2024
1 parent 39f6bb0 commit dc9b6ba
Show file tree
Hide file tree
Showing 13 changed files with 102 additions and 3 deletions.
14 changes: 14 additions & 0 deletions modules/googleapis-grpc-cc/0.1.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -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",
)
1 change: 1 addition & 0 deletions modules/googleapis-grpc-cc/0.1.0/overlay/MODULE.bazel
9 changes: 9 additions & 0 deletions modules/googleapis-grpc-cc/0.1.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tasks:
verify_targets:
name: Empty test
platform: ubuntu2404
bazel: 8.x
build_flags:
- "--nobuild"
build_targets:
- "//..."
7 changes: 7 additions & 0 deletions modules/googleapis-grpc-cc/0.1.0/source.json
Original file line number Diff line number Diff line change
@@ -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="
}
}
16 changes: 16 additions & 0 deletions modules/googleapis-grpc-cc/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"homepage": "https://github.com/googleapis/googleapis",
"maintainers": [
{
"email": "[email protected]",
"name": "No Maintainer Specified"
}
],
"repository": [
"github:googleapis/googleapis"
],
"versions": [
"0.1.0"
],
"yanked_versions": {}
}
14 changes: 14 additions & 0 deletions modules/googleapis-grpc-java/0.1.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -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",
)
1 change: 1 addition & 0 deletions modules/googleapis-grpc-java/0.1.0/overlay/MODULE.bazel
9 changes: 9 additions & 0 deletions modules/googleapis-grpc-java/0.1.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tasks:
verify_targets:
name: Empty test
platform: ubuntu2404
bazel: 8.x
build_flags:
- "--nobuild"
build_targets:
- "//..."
7 changes: 7 additions & 0 deletions modules/googleapis-grpc-java/0.1.0/source.json
Original file line number Diff line number Diff line change
@@ -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="
}
}
16 changes: 16 additions & 0 deletions modules/googleapis-grpc-java/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"homepage": "https://github.com/googleapis/googleapis",
"maintainers": [
{
"email": "[email protected]",
"name": "No Maintainer Specified"
}
],
"repository": [
"github:googleapis/googleapis"
],
"versions": [
"0.1.0"
],
"yanked_versions": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions modules/googleapis/0.0.0-20241220-5e258e33/source.json
Original file line number Diff line number Diff line change
Expand Up @@ -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="
}
Expand Down

0 comments on commit dc9b6ba

Please sign in to comment.