Skip to content

Commit c1122d4

Browse files
committed
Merge branch 'master' of https://github.com/grpc/grpc-java into FixIssue-11194
2 parents 9a63a50 + 111f9a2 commit c1122d4

File tree

662 files changed

+29241
-12358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

662 files changed

+29241
-12358
lines changed

.bazelrc

Lines 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

.github/workflows/testing.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
jre: [8, 11, 17]
20+
jre: [8, 11, 17, 21]
2121
fail-fast: false # Should swap to true if we grow a large matrix
2222

2323
steps:
@@ -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
@@ -102,6 +102,9 @@ jobs:
102102
- name: Run bazel build
103103
run: bazelisk build //... --enable_bzlmod=${{ matrix.bzlmod }}
104104

105+
- name: Run bazel test
106+
run: bazelisk test //... --enable_bzlmod=${{ matrix.bzlmod }}
107+
105108
- name: Run example bazel build
106109
run: bazelisk build //... --enable_bzlmod=${{ matrix.bzlmod }}
107110
working-directory: ./examples

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ MODULE.bazel.lock
3131
.gitignore
3232
bin
3333

34+
# VsCode
35+
.vscode
36+
3437
# OS X
3538
.DS_Store
3639

BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
load("@com_google_protobuf//bazel:java_proto_library.bzl", "java_proto_library")
16+
load("@rules_java//java:defs.bzl", "java_library", "java_plugin")
1517
load("@rules_jvm_external//:defs.bzl", "artifact")
1618
load(":java_grpc_library.bzl", "java_grpc_library")
1719

@@ -33,7 +35,6 @@ java_library(
3335
"//api",
3436
"//protobuf",
3537
"//stub",
36-
"//stub:javax_annotation",
3738
"@com_google_protobuf//:protobuf_java",
3839
artifact("com.google.code.findbugs:jsr305"),
3940
artifact("com.google.guava:guava"),
@@ -47,7 +48,6 @@ java_library(
4748
"//api",
4849
"//protobuf-lite",
4950
"//stub",
50-
"//stub:javax_annotation",
5151
artifact("com.google.code.findbugs:jsr305"),
5252
artifact("com.google.guava:guava"),
5353
],
@@ -67,6 +67,5 @@ java_library(
6767
visibility = ["//:__subpackages__"],
6868
exports = [
6969
artifact("com.google.auto.value:auto-value-annotations"),
70-
artifact("org.apache.tomcat:annotations-api"), # @Generated for Java 9+
7170
],
7271
)

COMPILING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ This section is only necessary if you are making changes to the code
4444
generation. Most users only need to use `skipCodegen=true` as discussed above.
4545

4646
### Build Protobuf
47-
The codegen plugin is C++ code and requires protobuf 21.7 or later.
47+
The codegen plugin is C++ code and requires protobuf 22.5 or later.
4848

4949
For Linux, Mac and MinGW:
5050
```
51-
$ PROTOBUF_VERSION=21.7
51+
$ PROTOBUF_VERSION=22.5
5252
$ curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION/protobuf-all-$PROTOBUF_VERSION.tar.gz
5353
$ tar xzf protobuf-all-$PROTOBUF_VERSION.tar.gz
5454
$ cd protobuf-$PROTOBUF_VERSION

MAINTAINERS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ for general contribution guidelines.
1111
- [ejona86](https://github.com/ejona86), Google LLC
1212
- [jdcormie](https://github.com/jdcormie), Google LLC
1313
- [kannanjgithub](https://github.com/kannanjgithub), Google LLC
14-
- [larry-safran](https://github.com/larry-safran), Google LLC
15-
- [markb74](https://github.com/markb74), Google LLC
1614
- [ran-su](https://github.com/ran-su), Google LLC
1715
- [sergiitk](https://github.com/sergiitk), Google LLC
1816
- [temawi](https://github.com/temawi), Google LLC
@@ -26,7 +24,9 @@ for general contribution guidelines.
2624
- [ericgribkoff](https://github.com/ericgribkoff)
2725
- [jiangtaoli2016](https://github.com/jiangtaoli2016)
2826
- [jtattermusch](https://github.com/jtattermusch)
27+
- [larry-safran](https://github.com/larry-safran)
2928
- [louiscryan](https://github.com/louiscryan)
29+
- [markb74](https://github.com/markb74)
3030
- [nicolasnoble](https://github.com/nicolasnoble)
3131
- [nmittler](https://github.com/nmittler)
3232
- [sanjaypujare](https://github.com/sanjaypujare)

MODULE.bazel

Lines changed: 30 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,209 +1,159 @@
11
module(
22
name = "grpc-java",
3+
version = "1.81.0-SNAPSHOT", # CURRENT_GRPC_VERSION
34
compatibility_level = 0,
45
repo_name = "io_grpc_grpc_java",
5-
version = "1.73.0-SNAPSHOT", # CURRENT_GRPC_VERSION
66
)
77

88
# GRPC_DEPS_START
99
IO_GRPC_GRPC_JAVA_ARTIFACTS = [
1010
"com.google.android:annotations:4.1.1.4",
11-
"com.google.api.grpc:proto-google-common-protos:2.51.0",
12-
"com.google.auth:google-auth-library-credentials:1.24.1",
13-
"com.google.auth:google-auth-library-oauth2-http:1.24.1",
11+
"com.google.api.grpc:proto-google-common-protos:2.63.2",
12+
"com.google.auth:google-auth-library-credentials:1.41.0",
13+
"com.google.auth:google-auth-library-oauth2-http:1.41.0",
1414
"com.google.auto.value:auto-value-annotations:1.11.0",
1515
"com.google.auto.value:auto-value:1.11.0",
1616
"com.google.code.findbugs:jsr305:3.0.2",
17-
"com.google.code.gson:gson:2.11.0",
18-
"com.google.errorprone:error_prone_annotations:2.30.0",
17+
"com.google.code.gson:gson:2.12.1",
18+
"com.google.errorprone:error_prone_annotations:2.45.0",
1919
"com.google.guava:failureaccess:1.0.1",
20-
"com.google.guava:guava:33.3.1-android",
20+
"com.google.guava:guava:33.5.0-android",
2121
"com.google.re2j:re2j:1.8",
22-
"com.google.s2a.proto.v2:s2a-proto:0.1.1",
23-
"com.google.truth:truth:1.4.2",
22+
"com.google.s2a.proto.v2:s2a-proto:0.1.3",
23+
"com.google.truth:truth:1.4.5",
2424
"com.squareup.okhttp:okhttp:2.7.5",
2525
"com.squareup.okio:okio:2.10.0", # 3.0+ needs swapping to -jvm; need work to avoid flag-day
26-
"io.netty:netty-buffer:4.1.110.Final",
27-
"io.netty:netty-codec-http2:4.1.110.Final",
28-
"io.netty:netty-codec-http:4.1.110.Final",
29-
"io.netty:netty-codec-socks:4.1.110.Final",
30-
"io.netty:netty-codec:4.1.110.Final",
31-
"io.netty:netty-common:4.1.110.Final",
32-
"io.netty:netty-handler-proxy:4.1.110.Final",
33-
"io.netty:netty-handler:4.1.110.Final",
34-
"io.netty:netty-resolver:4.1.110.Final",
35-
"io.netty:netty-tcnative-boringssl-static:2.0.70.Final",
36-
"io.netty:netty-tcnative-classes:2.0.70.Final",
37-
"io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.110.Final",
38-
"io.netty:netty-transport-native-unix-common:4.1.110.Final",
39-
"io.netty:netty-transport:4.1.110.Final",
26+
"io.netty:netty-buffer:4.1.130.Final",
27+
"io.netty:netty-codec-http2:4.1.130.Final",
28+
"io.netty:netty-codec-http:4.1.130.Final",
29+
"io.netty:netty-codec-socks:4.1.130.Final",
30+
"io.netty:netty-codec:4.1.130.Final",
31+
"io.netty:netty-common:4.1.130.Final",
32+
"io.netty:netty-handler-proxy:4.1.130.Final",
33+
"io.netty:netty-handler:4.1.130.Final",
34+
"io.netty:netty-resolver:4.1.130.Final",
35+
"io.netty:netty-tcnative-boringssl-static:2.0.74.Final",
36+
"io.netty:netty-tcnative-classes:2.0.74.Final",
37+
"io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.130.Final",
38+
"io.netty:netty-transport-native-unix-common:4.1.130.Final",
39+
"io.netty:netty-transport:4.1.130.Final",
4040
"io.opencensus:opencensus-api:0.31.0",
4141
"io.opencensus:opencensus-contrib-grpc-metrics:0.31.0",
4242
"io.perfmark:perfmark-api:0.27.0",
4343
"junit:junit:4.13.2",
44-
"org.apache.tomcat:annotations-api:6.0.53",
45-
"org.checkerframework:checker-qual:3.12.0",
46-
"org.codehaus.mojo:animal-sniffer-annotations:1.24",
44+
"org.checkerframework:checker-qual:3.49.5",
45+
"org.codehaus.mojo:animal-sniffer-annotations:1.26",
4746
]
4847
# GRPC_DEPS_END
4948

49+
bazel_dep(name = "bazel_jar_jar", version = "0.1.11.bcr.1")
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-
53-
# CEL Spec may be removed when cncf/xds MODULE is no longer using protobuf 27.x
54-
bazel_dep(name = "cel-spec", repo_name = "dev_cel", version = "0.15.0")
55-
bazel_dep(name = "grpc", repo_name = "com_github_grpc_grpc", version = "1.56.3.bcr.1")
56-
bazel_dep(name = "grpc-proto", repo_name = "io_grpc_grpc_proto", version = "0.0.0-20240627-ec30f58")
57-
bazel_dep(name = "protobuf", repo_name = "com_google_protobuf", version = "23.1")
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.bcr.1", repo_name = "io_grpc_grpc_proto")
53+
bazel_dep(name = "protobuf", version = "33.4", repo_name = "com_google_protobuf")
5854
bazel_dep(name = "rules_cc", version = "0.0.9")
59-
bazel_dep(name = "rules_java", version = "5.3.5")
60-
bazel_dep(name = "rules_go", repo_name = "io_bazel_rules_go", version = "0.46.0")
55+
bazel_dep(name = "rules_java", version = "9.1.0")
6156
bazel_dep(name = "rules_jvm_external", version = "6.0")
62-
bazel_dep(name = "rules_proto", version = "5.3.0-21.7")
63-
64-
non_module_deps = use_extension("//:repositories.bzl", "grpc_java_repositories_extension")
65-
66-
use_repo(
67-
non_module_deps,
68-
"com_github_cncf_xds",
69-
"envoy_api",
70-
)
71-
72-
grpc_repo_deps_ext = use_extension("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_repo_deps_ext")
73-
74-
use_repo(
75-
grpc_repo_deps_ext,
76-
"com_envoyproxy_protoc_gen_validate",
77-
"opencensus_proto",
78-
)
7957

8058
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
81-
8259
maven.install(
8360
artifacts = IO_GRPC_GRPC_JAVA_ARTIFACTS,
8461
repositories = [
8562
"https://repo.maven.apache.org/maven2/",
8663
],
8764
strict_visibility = True,
8865
)
89-
9066
use_repo(maven, "maven")
9167

9268
maven.override(
9369
coordinates = "com.google.protobuf:protobuf-java",
9470
target = "@com_google_protobuf//:protobuf_java",
9571
)
96-
9772
maven.override(
9873
coordinates = "com.google.protobuf:protobuf-java-util",
9974
target = "@com_google_protobuf//:protobuf_java_util",
10075
)
101-
10276
maven.override(
10377
coordinates = "com.google.protobuf:protobuf-javalite",
10478
target = "@com_google_protobuf//:protobuf_javalite",
10579
)
106-
10780
maven.override(
10881
coordinates = "io.grpc:grpc-alts",
10982
target = "@io_grpc_grpc_java//alts",
11083
)
111-
11284
maven.override(
11385
coordinates = "io.grpc:grpc-api",
11486
target = "@io_grpc_grpc_java//api",
11587
)
116-
11788
maven.override(
11889
coordinates = "io.grpc:grpc-auth",
11990
target = "@io_grpc_grpc_java//auth",
12091
)
121-
12292
maven.override(
12393
coordinates = "io.grpc:grpc-census",
12494
target = "@io_grpc_grpc_java//census",
12595
)
126-
12796
maven.override(
12897
coordinates = "io.grpc:grpc-context",
12998
target = "@io_grpc_grpc_java//context",
13099
)
131-
132100
maven.override(
133101
coordinates = "io.grpc:grpc-core",
134102
target = "@io_grpc_grpc_java//core:core_maven",
135103
)
136-
137104
maven.override(
138105
coordinates = "io.grpc:grpc-googleapis",
139106
target = "@io_grpc_grpc_java//googleapis",
140107
)
141-
142108
maven.override(
143109
coordinates = "io.grpc:grpc-grpclb",
144110
target = "@io_grpc_grpc_java//grpclb",
145111
)
146-
147112
maven.override(
148113
coordinates = "io.grpc:grpc-inprocess",
149114
target = "@io_grpc_grpc_java//inprocess",
150115
)
151-
152116
maven.override(
153117
coordinates = "io.grpc:grpc-netty",
154118
target = "@io_grpc_grpc_java//netty",
155119
)
156-
157120
maven.override(
158121
coordinates = "io.grpc:grpc-netty-shaded",
159122
target = "@io_grpc_grpc_java//netty:shaded_maven",
160123
)
161-
162124
maven.override(
163125
coordinates = "io.grpc:grpc-okhttp",
164126
target = "@io_grpc_grpc_java//okhttp",
165127
)
166-
167128
maven.override(
168129
coordinates = "io.grpc:grpc-protobuf",
169130
target = "@io_grpc_grpc_java//protobuf",
170131
)
171-
172132
maven.override(
173133
coordinates = "io.grpc:grpc-protobuf-lite",
174134
target = "@io_grpc_grpc_java//protobuf-lite",
175135
)
176-
177136
maven.override(
178137
coordinates = "io.grpc:grpc-rls",
179138
target = "@io_grpc_grpc_java//rls",
180139
)
181-
182140
maven.override(
183141
coordinates = "io.grpc:grpc-services",
184142
target = "@io_grpc_grpc_java//services:services_maven",
185143
)
186-
187144
maven.override(
188145
coordinates = "io.grpc:grpc-stub",
189146
target = "@io_grpc_grpc_java//stub",
190147
)
191-
192148
maven.override(
193149
coordinates = "io.grpc:grpc-testing",
194150
target = "@io_grpc_grpc_java//testing",
195151
)
196-
197152
maven.override(
198153
coordinates = "io.grpc:grpc-xds",
199154
target = "@io_grpc_grpc_java//xds:xds_maven",
200155
)
201-
202156
maven.override(
203157
coordinates = "io.grpc:grpc-util",
204158
target = "@io_grpc_grpc_java//util",
205159
)
206-
207-
switched_rules = use_extension("@com_google_googleapis//:extensions.bzl", "switched_rules")
208-
209-
switched_rules.use_languages(java = True)

0 commit comments

Comments
 (0)