Skip to content

Commit

Permalink
Update protobuf dep
Browse files Browse the repository at this point in the history
  • Loading branch information
tiziano88 committed Jan 22, 2024
1 parent e132e75 commit 13ea72c
Showing 1 changed file with 33 additions and 28 deletions.
61 changes: 33 additions & 28 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Google Abseil.
# https://github.com/abseil/abseil-cpp

absl_version = "20230802.1"

http_archive(
name = "com_google_absl",
sha256 = "5366d7e7fa7ba0d915014d387b66d0d002c03236448e1ba9ef98122c13b35c36",
strip_prefix = "abseil-cpp-20230125.3",
sha256 = "987ce98f02eefbaf930d6e38ab16aa05737234d7afbab2d5c4ea7adbe50c28ed",
strip_prefix = "abseil-cpp-{}".format(absl_version),
urls = [
# Abseil LTS 20230125.3.
"https://github.com/abseil/abseil-cpp/archive/refs/tags/20230125.3.tar.gz",
"https://github.com/abseil/abseil-cpp/archive/refs/tags/{}.tar.gz".format(absl_version),
],
)

Expand Down Expand Up @@ -57,15 +59,34 @@ http_archive(
],
)

# Google Protocol Buffers.
# https://github.com/protocolbuffers/protobuf
protobuf_version = "25.2"

http_archive(
name = "com_google_protobuf",
sha256 = "8ff511a64fc46ee792d3fe49a5a1bcad6f7dc50dfbba5a28b0e5b979c17f9871",
strip_prefix = "protobuf-{}".format(protobuf_version),
urls = [
"https://github.com/protocolbuffers/protobuf/releases/download/v{}/protobuf-{}.tar.gz".format(protobuf_version, protobuf_version),
],
)

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

# `protobuf_deps` should be loaded after `grpc_deps` in the WORKSPACE file.
protobuf_deps()

# C++ gRPC support.
# https://github.com/grpc/grpc
grpc_version = "1.60.0"

http_archive(
name = "com_github_grpc_grpc",
sha256 = "e034992a0b464042021f6d440f2090acc2422c103a322b0844e3921ccea981dc",
strip_prefix = "grpc-1.56.0",
sha256 = "437068b8b777d3b339da94d3498f1dc20642ac9bfa76db43abdd522186b1542b",
strip_prefix = "grpc-{}".format(grpc_version),
urls = [
# gRPC v1.56.0 (2023-06-14).
"https://github.com/grpc/grpc/archive/refs/tags/v1.56.0.tar.gz",
"https://github.com/grpc/grpc/archive/refs/tags/v{}.tar.gz".format(grpc_version),
],
)

Expand All @@ -79,37 +100,21 @@ grpc_extra_deps()

# Java gRPC support.
# https://github.com/grpc/grpc-java
# Use the same version as the C++ gRPC library.
http_archive(
name = "io_grpc_grpc_java",
sha256 = "4af5ecbaed16455fcda9fdab36e131696f5092858dd130f026069fcf11817a21",
strip_prefix = "grpc-java-1.56.0",
sha256 = "02c9a7f9400d4e29c7e55667851083a9f695935081787079a834da312129bf97",
strip_prefix = "grpc-java-{}".format(grpc_version),
urls = [
# Java gRPC v1.56.0 (2023-06-21).
"https://github.com/grpc/grpc-java/archive/refs/tags/v1.56.0.tar.gz",
"https://github.com/grpc/grpc-java/archive/refs/tags/v{}.tar.gz".format(grpc_version),
],
)

load("@io_grpc_grpc_java//:repositories.bzl", "IO_GRPC_GRPC_JAVA_ARTIFACTS", "IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS", "grpc_java_repositories")

grpc_java_repositories()

# Google Protocol Buffers.
# https://github.com/protocolbuffers/protobuf
http_archive(
name = "com_google_protobuf",
sha256 = "3a5f47ad3aa10192c5577ff086b24b9739a36937c34ceab6db912a16a3ef7f8e",
strip_prefix = "protobuf-23.3",
urls = [
# Protocol Buffers v23.3 (2023-06-14).
"https://github.com/protocolbuffers/protobuf/releases/download/v23.3/protobuf-23.3.tar.gz",
],
)

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

# `protobuf_deps` should be loaded after `grpc_deps` in the WORKSPACE file.
protobuf_deps()

# External Java rules.
# https://github.com/bazelbuild/rules_jvm_external
http_archive(
Expand Down

0 comments on commit 13ea72c

Please sign in to comment.