GeezerVison is showing github.com — compiler: Upgrade Bazel protobuf to 33.1 (#12553) · grpc/grpc-java@b61a8f4
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -build --cxxopt=-std=c++14 --host_cxxopt=-std=c++14 | | 1 | +build --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/testing.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 81 | 81 | matrix: | 82 | 82 | bzlmod: [true, false] | 83 | 83 | env: | 84 | | - USE_BAZEL_VERSION: 7.0.0 | | 84 | + USE_BAZEL_VERSION: 7.7.1 | 85 | 85 |
| 86 | 86 | steps: | 87 | 87 | - uses: actions/checkout@v4 | |
Collapse file Copy file name to clipboardExpand all lines: MODULE.bazel +4-7Lines changed: 4 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -48,17 +48,14 @@ IO_GRPC_GRPC_JAVA_ARTIFACTS = [ | 48 | 48 |
| 49 | 49 | bazel_dep(name = "bazel_jar_jar", version = "0.1.7") | 50 | 50 | bazel_dep(name = "bazel_skylib", version = "1.7.1") | 51 | | -bazel_dep(name = "googleapis", repo_name = "com_google_googleapis", version = "0.0.0-20240326-1c8d509c5") | 52 | | -bazel_dep(name = "grpc-proto", repo_name = "io_grpc_grpc_proto", version = "0.0.0-20240627-ec30f58") | 53 | | -# Protobuf 25.5+ is incompatible with Bazel 7 with bzlmod | 54 | | -bazel_dep(name = "protobuf", repo_name = "com_google_protobuf", version = "24.4") | | 51 | +bazel_dep(name = "googleapis", version = "0.0.0-20240326-1c8d509c5", repo_name = "com_google_googleapis") | | 52 | +bazel_dep(name = "grpc-proto", version = "0.0.0-20240627-ec30f58", repo_name = "io_grpc_grpc_proto") | | 53 | +bazel_dep(name = "protobuf", version = "33.1", repo_name = "com_google_protobuf") | 55 | 54 | bazel_dep(name = "rules_cc", version = "0.0.9") | 56 | | -bazel_dep(name = "rules_java", version = "5.3.5") | | 55 | +bazel_dep(name = "rules_java", version = "9.1.0") | 57 | 56 | bazel_dep(name = "rules_jvm_external", version = "6.0") | 58 | | -bazel_dep(name = "rules_proto", version = "5.3.0-21.7") | 59 | 57 |
| 60 | 58 | maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") | 61 | | - | 62 | 59 | maven.install( | 63 | 60 | artifacts = IO_GRPC_GRPC_JAVA_ARTIFACTS, | 64 | 61 | repositories = [ | |
Collapse file Copy file name to clipboardExpand all lines: WORKSPACE +23-4Lines changed: 23 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,12 +2,28 @@ workspace(name = "io_grpc_grpc_java") | 2 | 2 |
| 3 | 3 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | 4 | 4 |
| | 5 | +http_archive( | | 6 | + name = "bazel_features", | | 7 | + sha256 = "a660027f5a87f13224ab54b8dc6e191693c554f2692fcca46e8e29ee7dabc43b", | | 8 | + strip_prefix = "bazel_features-1.30.0", | | 9 | + url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.30.0/bazel_features-v1.30.0.tar.gz", | | 10 | +) | | 11 | + | | 12 | +load("@bazel_features//:deps.bzl", "bazel_features_deps") | | 13 | +bazel_features_deps() | | 14 | + | 5 | 15 | http_archive( | 6 | 16 | name = "rules_java", | 7 | | - url = "https://github.com/bazelbuild/rules_java/releases/download/5.3.5/rules_java-5.3.5.tar.gz", | 8 | | - sha256 = "c73336802d0b4882e40770666ad055212df4ea62cfa6edf9cb0f9d29828a0934", | | 17 | + urls = [ | | 18 | + "https://github.com/bazelbuild/rules_java/releases/download/9.1.0/rules_java-9.1.0.tar.gz", | | 19 | + ], | | 20 | + sha256 = "4e1a28a25c2efa53500c928d22ceffbc505dd95b335a2d025836a293b592212f", | 9 | 21 | ) | 10 | 22 |
| | 23 | +load("@rules_java//java:rules_java_deps.bzl", "compatibility_proxy_repo") | | 24 | + | | 25 | +compatibility_proxy_repo() | | 26 | + | 11 | 27 | http_archive( | 12 | 28 | name = "rules_jvm_external", | 13 | 29 | sha256 = "d31e369b854322ca5098ea12c69d7175ded971435e55c18dd9dd5f29cc5249ac", | @@ -26,11 +42,14 @@ load("@bazel_jar_jar//:jar_jar.bzl", "jar_jar_repositories") | 26 | 42 |
| 27 | 43 | jar_jar_repositories() | 28 | 44 |
| 29 | | -load("@com_google_protobuf//:protobuf_deps.bzl", "PROTOBUF_MAVEN_ARTIFACTS") | 30 | | -load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") | | 45 | +load("@com_google_protobuf//:protobuf_deps.bzl", "PROTOBUF_MAVEN_ARTIFACTS", "protobuf_deps") | 31 | 46 |
| 32 | 47 | protobuf_deps() | 33 | 48 |
| | 49 | +load("@rules_python//python:repositories.bzl", "py_repositories") | | 50 | + | | 51 | +py_repositories() | | 52 | + | 34 | 53 | load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language") | 35 | 54 |
| 36 | 55 | switched_rules_by_language( | |
Collapse file Copy file name to clipboardExpand all lines: alts/BUILD.bazel +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +load("@com_google_protobuf//bazel:proto_library.bzl", "proto_library") | 1 | 2 | load("@rules_java//java:defs.bzl", "java_library", "java_proto_library") | 2 | 3 | load("@rules_jvm_external//:defs.bzl", "artifact") | 3 | | -load("@rules_proto//proto:defs.bzl", "proto_library") | 4 | 4 | load("//:java_grpc_library.bzl", "java_grpc_library") | 5 | 5 |
| 6 | 6 | java_library( | |
Collapse file Copy file name to clipboardExpand all lines: buildscripts/kokoro/unix.sh +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -38,6 +38,7 @@ ARCH="$ARCH" buildscripts/make_dependencies.sh | 38 | 38 |
| 39 | 39 | # Set properties via flags, do not pollute gradle.properties | 40 | 40 | GRADLE_FLAGS="${GRADLE_FLAGS:-}" | | 41 | +GRADLE_FLAGS+=" --stacktrace" | 41 | 42 | GRADLE_FLAGS+=" -PtargetArch=$ARCH" | 42 | 43 |
| 43 | 44 | # For universal binaries on macOS, signal Gradle to use universal flags. | |
Collapse file Copy file name to clipboard +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -build --cxxopt=-std=c++14 --host_cxxopt=-std=c++14 | | 1 | +build --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 |
Collapse file Copy file name to clipboardExpand all lines: examples/BUILD.bazel +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -load("@rules_proto//proto:defs.bzl", "proto_library") | | 1 | +load("@com_google_protobuf//bazel:java_proto_library.bzl", "java_proto_library") | | 2 | +load("@com_google_protobuf//bazel:proto_library.bzl", "proto_library") | 2 | 3 | load("@io_grpc_grpc_java//:java_grpc_library.bzl", "java_grpc_library") | 3 | 4 |
| 4 | 5 | proto_library( | |
Collapse file Copy file name to clipboardExpand all lines: examples/MODULE.bazel +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | bazel_dep(name = "grpc-java", repo_name = "io_grpc_grpc_java", version = "1.79.0-SNAPSHOT") # CURRENT_GRPC_VERSION | 2 | 2 | bazel_dep(name = "grpc-proto", repo_name = "io_grpc_grpc_proto", version = "0.0.0-20240627-ec30f58") | 3 | | -bazel_dep(name = "protobuf", repo_name = "com_google_protobuf", version = "23.1") | | 3 | +bazel_dep(name = "protobuf", repo_name = "com_google_protobuf", version = "33.1") | 4 | 4 | bazel_dep(name = "rules_jvm_external", version = "6.0") | 5 | | -bazel_dep(name = "rules_proto", version = "5.3.0-21.7") | 6 | 5 |
| 7 | 6 | # Do not use this override in your own MODULE.bazel. It is unnecessary when | 8 | 7 | # using a version from BCR. Be aware the gRPC Java team does not update the | |
Collapse file Copy file name to clipboardExpand all lines: examples/WORKSPACE +9-2Lines changed: 9 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -34,11 +34,18 @@ jar_jar_repositories() | 34 | 34 |
| 35 | 35 | # Protobuf now requires C++14 or higher, which requires Bazel configuration | 36 | 36 | # outside the WORKSPACE. See .bazelrc in this directory. | 37 | | -load("@com_google_protobuf//:protobuf_deps.bzl", "PROTOBUF_MAVEN_ARTIFACTS") | 38 | | -load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") | | 37 | +load("@com_google_protobuf//:protobuf_deps.bzl", "PROTOBUF_MAVEN_ARTIFACTS", "protobuf_deps") | 39 | 38 |
| 40 | 39 | protobuf_deps() | 41 | 40 |
| | 41 | +load("@rules_python//python:repositories.bzl", "py_repositories") | | 42 | + | | 43 | +py_repositories() | | 44 | + | | 45 | +load("@rules_java//java:rules_java_deps.bzl", "compatibility_proxy_repo") | | 46 | + | | 47 | +compatibility_proxy_repo() | | 48 | + | 42 | 49 | load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language") | 43 | 50 |
| 44 | 51 | switched_rules_by_language( | |
|