GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — compiler: Upgrade Bazel protobuf to 33.1 (#12553) · grpc/grpc-java@b61a8f4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .bazelrc
  • .github/workflows
    • testing.yml
  • MODULE.bazel
  • WORKSPACE
  • alts
    • BUILD.bazel
  • buildscripts/kokoro
    • unix.sh
  • examples
    • .bazelrc
    • BUILD.bazel
    • MODULE.bazel
    • WORKSPACE
    • example-alts
      • BUILD.bazel
    • example-hostname
      • BUILD.bazel
    • example-tls
      • BUILD.bazel
  • java_grpc_library.bzl
  • repositories.bzl
  • testing-proto
    • BUILD.bazel
  • xds
    • BUILD.bazel
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.bazelrc‎

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
build --cxxopt=-std=c++14 --host_cxxopt=-std=c++14
1+
build --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
Collapse file

‎.github/workflows/testing.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/testing.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
matrix:
8282
bzlmod: [true, false]
8383
env:
84-
USE_BAZEL_VERSION: 7.0.0
84+
USE_BAZEL_VERSION: 7.7.1
8585

8686
steps:
8787
- uses: actions/checkout@v4
Collapse file

‎MODULE.bazel‎

Copy file name to clipboardExpand all lines: MODULE.bazel
+4-7Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,14 @@ IO_GRPC_GRPC_JAVA_ARTIFACTS = [
4848

4949
bazel_dep(name = "bazel_jar_jar", version = "0.1.7")
5050
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")
5554
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")
5756
bazel_dep(name = "rules_jvm_external", version = "6.0")
58-
bazel_dep(name = "rules_proto", version = "5.3.0-21.7")
5957

6058
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
61-
6259
maven.install(
6360
artifacts = IO_GRPC_GRPC_JAVA_ARTIFACTS,
6461
repositories = [
Collapse file

‎WORKSPACE‎

Copy file name to clipboardExpand all lines: WORKSPACE
+23-4Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,28 @@ workspace(name = "io_grpc_grpc_java")
22

33
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
44

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+
515
http_archive(
616
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",
921
)
1022

23+
load("@rules_java//java:rules_java_deps.bzl", "compatibility_proxy_repo")
24+
25+
compatibility_proxy_repo()
26+
1127
http_archive(
1228
name = "rules_jvm_external",
1329
sha256 = "d31e369b854322ca5098ea12c69d7175ded971435e55c18dd9dd5f29cc5249ac",
@@ -26,11 +42,14 @@ load("@bazel_jar_jar//:jar_jar.bzl", "jar_jar_repositories")
2642

2743
jar_jar_repositories()
2844

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")
3146

3247
protobuf_deps()
3348

49+
load("@rules_python//python:repositories.bzl", "py_repositories")
50+
51+
py_repositories()
52+
3453
load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language")
3554

3655
switched_rules_by_language(
Collapse file

‎alts/BUILD.bazel‎

Copy file name to clipboardExpand all lines: alts/BUILD.bazel
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
load("@com_google_protobuf//bazel:proto_library.bzl", "proto_library")
12
load("@rules_java//java:defs.bzl", "java_library", "java_proto_library")
23
load("@rules_jvm_external//:defs.bzl", "artifact")
3-
load("@rules_proto//proto:defs.bzl", "proto_library")
44
load("//:java_grpc_library.bzl", "java_grpc_library")
55

66
java_library(
Collapse file

‎buildscripts/kokoro/unix.sh‎

Copy file name to clipboardExpand all lines: buildscripts/kokoro/unix.sh
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ ARCH="$ARCH" buildscripts/make_dependencies.sh
3838

3939
# Set properties via flags, do not pollute gradle.properties
4040
GRADLE_FLAGS="${GRADLE_FLAGS:-}"
41+
GRADLE_FLAGS+=" --stacktrace"
4142
GRADLE_FLAGS+=" -PtargetArch=$ARCH"
4243

4344
# For universal binaries on macOS, signal Gradle to use universal flags.
Collapse file

‎examples/.bazelrc‎

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
build --cxxopt=-std=c++14 --host_cxxopt=-std=c++14
1+
build --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
Collapse file

‎examples/BUILD.bazel‎

Copy file name to clipboardExpand all lines: examples/BUILD.bazel
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
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")
23
load("@io_grpc_grpc_java//:java_grpc_library.bzl", "java_grpc_library")
34

45
proto_library(
Collapse file

‎examples/MODULE.bazel‎

Copy file name to clipboardExpand all lines: examples/MODULE.bazel
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
bazel_dep(name = "grpc-java", repo_name = "io_grpc_grpc_java", version = "1.79.0-SNAPSHOT") # CURRENT_GRPC_VERSION
22
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")
44
bazel_dep(name = "rules_jvm_external", version = "6.0")
5-
bazel_dep(name = "rules_proto", version = "5.3.0-21.7")
65

76
# Do not use this override in your own MODULE.bazel. It is unnecessary when
87
# using a version from BCR. Be aware the gRPC Java team does not update the
Collapse file

‎examples/WORKSPACE‎

Copy file name to clipboardExpand all lines: examples/WORKSPACE
+9-2Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,18 @@ jar_jar_repositories()
3434

3535
# Protobuf now requires C++14 or higher, which requires Bazel configuration
3636
# 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")
3938

4039
protobuf_deps()
4140

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+
4249
load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language")
4350

4451
switched_rules_by_language(

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.