Skip to content

Commit b64ff95

Browse files
committed
Merge branch 'master' into enable-otel-tracing-for-interop-test
2 parents eed2356 + 9d5842b commit b64ff95

File tree

165 files changed

+3486
-3214
lines changed

Some content is hidden

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

165 files changed

+3486
-3214
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: 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

BUILD.bazel

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

15-
load("@rules_java//java:defs.bzl", "java_library", "java_plugin", "java_proto_library")
15+
load("@com_google_protobuf//bazel:java_proto_library.bzl", "java_proto_library")
16+
load("@rules_java//java:defs.bzl", "java_library", "java_plugin")
1617
load("@rules_jvm_external//:defs.bzl", "artifact")
1718
load(":java_grpc_library.bzl", "java_grpc_library")
1819

MODULE.bazel

Lines changed: 22 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
module(
22
name = "grpc-java",
3+
version = "1.80.0-SNAPSHOT", # CURRENT_GRPC_VERSION
34
compatibility_level = 0,
45
repo_name = "io_grpc_grpc_java",
5-
version = "1.79.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.63.1",
12-
"com.google.auth:google-auth-library-credentials:1.40.0",
13-
"com.google.auth:google-auth-library-oauth2-http:1.40.0",
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",
1717
"com.google.code.gson:gson:2.12.1",
18-
"com.google.errorprone:error_prone_annotations:2.44.0",
18+
"com.google.errorprone:error_prone_annotations:2.45.0",
1919
"com.google.guava:failureaccess:1.0.1",
2020
"com.google.guava:guava:33.5.0-android",
2121
"com.google.re2j:re2j:1.8",
2222
"com.google.s2a.proto.v2:s2a-proto:0.1.3",
2323
"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.127.Final",
27-
"io.netty:netty-codec-http2:4.1.127.Final",
28-
"io.netty:netty-codec-http:4.1.127.Final",
29-
"io.netty:netty-codec-socks:4.1.127.Final",
30-
"io.netty:netty-codec:4.1.127.Final",
31-
"io.netty:netty-common:4.1.127.Final",
32-
"io.netty:netty-handler-proxy:4.1.127.Final",
33-
"io.netty:netty-handler:4.1.127.Final",
34-
"io.netty:netty-resolver:4.1.127.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",
3535
"io.netty:netty-tcnative-boringssl-static:2.0.74.Final",
3636
"io.netty:netty-tcnative-classes:2.0.74.Final",
37-
"io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.127.Final",
38-
"io.netty:netty-transport-native-unix-common:4.1.127.Final",
39-
"io.netty:netty-transport:4.1.127.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",
@@ -46,139 +46,113 @@ IO_GRPC_GRPC_JAVA_ARTIFACTS = [
4646
]
4747
# GRPC_DEPS_END
4848

49-
bazel_dep(name = "bazel_jar_jar", version = "0.1.7")
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-
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.bcr.1", repo_name = "io_grpc_grpc_proto")
53+
bazel_dep(name = "protobuf", version = "33.4", 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 = [
6562
"https://repo.maven.apache.org/maven2/",
6663
],
6764
strict_visibility = True,
6865
)
69-
7066
use_repo(maven, "maven")
7167

7268
maven.override(
7369
coordinates = "com.google.protobuf:protobuf-java",
7470
target = "@com_google_protobuf//:protobuf_java",
7571
)
76-
7772
maven.override(
7873
coordinates = "com.google.protobuf:protobuf-java-util",
7974
target = "@com_google_protobuf//:protobuf_java_util",
8075
)
81-
8276
maven.override(
8377
coordinates = "com.google.protobuf:protobuf-javalite",
8478
target = "@com_google_protobuf//:protobuf_javalite",
8579
)
86-
8780
maven.override(
8881
coordinates = "io.grpc:grpc-alts",
8982
target = "@io_grpc_grpc_java//alts",
9083
)
91-
9284
maven.override(
9385
coordinates = "io.grpc:grpc-api",
9486
target = "@io_grpc_grpc_java//api",
9587
)
96-
9788
maven.override(
9889
coordinates = "io.grpc:grpc-auth",
9990
target = "@io_grpc_grpc_java//auth",
10091
)
101-
10292
maven.override(
10393
coordinates = "io.grpc:grpc-census",
10494
target = "@io_grpc_grpc_java//census",
10595
)
106-
10796
maven.override(
10897
coordinates = "io.grpc:grpc-context",
10998
target = "@io_grpc_grpc_java//context",
11099
)
111-
112100
maven.override(
113101
coordinates = "io.grpc:grpc-core",
114102
target = "@io_grpc_grpc_java//core:core_maven",
115103
)
116-
117104
maven.override(
118105
coordinates = "io.grpc:grpc-googleapis",
119106
target = "@io_grpc_grpc_java//googleapis",
120107
)
121-
122108
maven.override(
123109
coordinates = "io.grpc:grpc-grpclb",
124110
target = "@io_grpc_grpc_java//grpclb",
125111
)
126-
127112
maven.override(
128113
coordinates = "io.grpc:grpc-inprocess",
129114
target = "@io_grpc_grpc_java//inprocess",
130115
)
131-
132116
maven.override(
133117
coordinates = "io.grpc:grpc-netty",
134118
target = "@io_grpc_grpc_java//netty",
135119
)
136-
137120
maven.override(
138121
coordinates = "io.grpc:grpc-netty-shaded",
139122
target = "@io_grpc_grpc_java//netty:shaded_maven",
140123
)
141-
142124
maven.override(
143125
coordinates = "io.grpc:grpc-okhttp",
144126
target = "@io_grpc_grpc_java//okhttp",
145127
)
146-
147128
maven.override(
148129
coordinates = "io.grpc:grpc-protobuf",
149130
target = "@io_grpc_grpc_java//protobuf",
150131
)
151-
152132
maven.override(
153133
coordinates = "io.grpc:grpc-protobuf-lite",
154134
target = "@io_grpc_grpc_java//protobuf-lite",
155135
)
156-
157136
maven.override(
158137
coordinates = "io.grpc:grpc-rls",
159138
target = "@io_grpc_grpc_java//rls",
160139
)
161-
162140
maven.override(
163141
coordinates = "io.grpc:grpc-services",
164142
target = "@io_grpc_grpc_java//services:services_maven",
165143
)
166-
167144
maven.override(
168145
coordinates = "io.grpc:grpc-stub",
169146
target = "@io_grpc_grpc_java//stub",
170147
)
171-
172148
maven.override(
173149
coordinates = "io.grpc:grpc-testing",
174150
target = "@io_grpc_grpc_java//testing",
175151
)
176-
177152
maven.override(
178153
coordinates = "io.grpc:grpc-xds",
179154
target = "@io_grpc_grpc_java//xds:xds_maven",
180155
)
181-
182156
maven.override(
183157
coordinates = "io.grpc:grpc-util",
184158
target = "@io_grpc_grpc_java//util",

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ For a guided tour, take a look at the [quick start
4444
guide](https://grpc.io/docs/languages/java/quickstart) or the more explanatory [gRPC
4545
basics](https://grpc.io/docs/languages/java/basics).
4646

47-
The [examples](https://github.com/grpc/grpc-java/tree/v1.77.0/examples) and the
48-
[Android example](https://github.com/grpc/grpc-java/tree/v1.77.0/examples/android)
47+
The [examples](https://github.com/grpc/grpc-java/tree/v1.78.0/examples) and the
48+
[Android example](https://github.com/grpc/grpc-java/tree/v1.78.0/examples/android)
4949
are standalone projects that showcase the usage of gRPC.
5050

5151
Download
@@ -56,42 +56,42 @@ Download [the JARs][]. Or for Maven with non-Android, add to your `pom.xml`:
5656
<dependency>
5757
<groupId>io.grpc</groupId>
5858
<artifactId>grpc-netty-shaded</artifactId>
59-
<version>1.77.0</version>
59+
<version>1.78.0</version>
6060
<scope>runtime</scope>
6161
</dependency>
6262
<dependency>
6363
<groupId>io.grpc</groupId>
6464
<artifactId>grpc-protobuf</artifactId>
65-
<version>1.77.0</version>
65+
<version>1.78.0</version>
6666
</dependency>
6767
<dependency>
6868
<groupId>io.grpc</groupId>
6969
<artifactId>grpc-stub</artifactId>
70-
<version>1.77.0</version>
70+
<version>1.78.0</version>
7171
</dependency>
7272
```
7373

7474
Or for Gradle with non-Android, add to your dependencies:
7575
```gradle
76-
runtimeOnly 'io.grpc:grpc-netty-shaded:1.77.0'
77-
implementation 'io.grpc:grpc-protobuf:1.77.0'
78-
implementation 'io.grpc:grpc-stub:1.77.0'
76+
runtimeOnly 'io.grpc:grpc-netty-shaded:1.78.0'
77+
implementation 'io.grpc:grpc-protobuf:1.78.0'
78+
implementation 'io.grpc:grpc-stub:1.78.0'
7979
```
8080

8181
For Android client, use `grpc-okhttp` instead of `grpc-netty-shaded` and
8282
`grpc-protobuf-lite` instead of `grpc-protobuf`:
8383
```gradle
84-
implementation 'io.grpc:grpc-okhttp:1.77.0'
85-
implementation 'io.grpc:grpc-protobuf-lite:1.77.0'
86-
implementation 'io.grpc:grpc-stub:1.77.0'
84+
implementation 'io.grpc:grpc-okhttp:1.78.0'
85+
implementation 'io.grpc:grpc-protobuf-lite:1.78.0'
86+
implementation 'io.grpc:grpc-stub:1.78.0'
8787
```
8888

8989
For [Bazel](https://bazel.build), you can either
9090
[use Maven](https://github.com/bazelbuild/rules_jvm_external)
9191
(with the GAVs from above), or use `@io_grpc_grpc_java//api` et al (see below).
9292

9393
[the JARs]:
94-
https://search.maven.org/search?q=g:io.grpc%20AND%20v:1.77.0
94+
https://search.maven.org/search?q=g:io.grpc%20AND%20v:1.78.0
9595

9696
Development snapshots are available in [Sonatypes's snapshot
9797
repository](https://central.sonatype.com/repository/maven-snapshots/).
@@ -123,7 +123,7 @@ For protobuf-based codegen integrated with the Maven build system, you can use
123123
<configuration>
124124
<protocArtifact>com.google.protobuf:protoc:3.25.8:exe:${os.detected.classifier}</protocArtifact>
125125
<pluginId>grpc-java</pluginId>
126-
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.77.0:exe:${os.detected.classifier}</pluginArtifact>
126+
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.78.0:exe:${os.detected.classifier}</pluginArtifact>
127127
</configuration>
128128
<executions>
129129
<execution>
@@ -153,7 +153,7 @@ protobuf {
153153
}
154154
plugins {
155155
grpc {
156-
artifact = 'io.grpc:protoc-gen-grpc-java:1.77.0'
156+
artifact = 'io.grpc:protoc-gen-grpc-java:1.78.0'
157157
}
158158
}
159159
generateProtoTasks {
@@ -186,7 +186,7 @@ protobuf {
186186
}
187187
plugins {
188188
grpc {
189-
artifact = 'io.grpc:protoc-gen-grpc-java:1.77.0'
189+
artifact = 'io.grpc:protoc-gen-grpc-java:1.78.0'
190190
}
191191
}
192192
generateProtoTasks {

SECURITY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ grpc-netty version | netty-handler version | netty-tcnative-boringssl-static ver
398398
1.67.x-1.70.x | 4.1.110.Final | 2.0.65.Final
399399
1.71.x-1.74.x | 4.1.110.Final | 2.0.70.Final
400400
1.75.x-1.76.x | 4.1.124.Final | 2.0.72.Final
401-
1.77.x- | 4.1.127.Final | 2.0.74.Final
401+
1.77.x-1.78.x | 4.1.127.Final | 2.0.74.Final
402+
1.79.x- | 4.1.130.Final | 2.0.74.Final
402403

403404
_(grpc-netty-shaded avoids issues with keeping these versions in sync.)_
404405

WORKSPACE

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,53 @@
11
workspace(name = "io_grpc_grpc_java")
22

33
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4+
load("//:repositories.bzl", "IO_GRPC_GRPC_JAVA_ARTIFACTS", "IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS", "grpc_java_repositories")
5+
6+
grpc_java_repositories()
47

58
http_archive(
69
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",
10+
sha256 = "47632cc506c858011853073449801d648e10483d4b50e080ec2549a4b2398960",
11+
urls = [
12+
"https://github.com/bazelbuild/rules_java/releases/download/8.15.2/rules_java-8.15.2.tar.gz",
13+
],
914
)
1015

11-
http_archive(
12-
name = "rules_jvm_external",
13-
sha256 = "d31e369b854322ca5098ea12c69d7175ded971435e55c18dd9dd5f29cc5249ac",
14-
strip_prefix = "rules_jvm_external-5.3",
15-
url = "https://github.com/bazelbuild/rules_jvm_external/releases/download/5.3/rules_jvm_external-5.3.tar.gz",
16-
)
16+
load("@com_google_protobuf//:protobuf_deps.bzl", "PROTOBUF_MAVEN_ARTIFACTS", "protobuf_deps")
1717

18-
load("@rules_jvm_external//:defs.bzl", "maven_install")
19-
load("//:repositories.bzl", "IO_GRPC_GRPC_JAVA_ARTIFACTS")
20-
load("//:repositories.bzl", "IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS")
21-
load("//:repositories.bzl", "grpc_java_repositories")
18+
protobuf_deps()
2219

23-
grpc_java_repositories()
20+
load("@rules_java//java:rules_java_deps.bzl", "rules_java_dependencies")
21+
22+
rules_java_dependencies()
23+
24+
load("@bazel_features//:deps.bzl", "bazel_features_deps")
25+
26+
bazel_features_deps()
2427

2528
load("@bazel_jar_jar//:jar_jar.bzl", "jar_jar_repositories")
2629

2730
jar_jar_repositories()
2831

29-
load("@com_google_protobuf//:protobuf_deps.bzl", "PROTOBUF_MAVEN_ARTIFACTS")
30-
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
32+
load("@rules_python//python:repositories.bzl", "py_repositories")
3133

32-
protobuf_deps()
34+
py_repositories()
3335

3436
load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language")
3537

3638
switched_rules_by_language(
3739
name = "com_google_googleapis_imports",
3840
)
3941

42+
http_archive(
43+
name = "rules_jvm_external",
44+
sha256 = "d31e369b854322ca5098ea12c69d7175ded971435e55c18dd9dd5f29cc5249ac",
45+
strip_prefix = "rules_jvm_external-5.3",
46+
url = "https://github.com/bazelbuild/rules_jvm_external/releases/download/5.3/rules_jvm_external-5.3.tar.gz",
47+
)
48+
49+
load("@rules_jvm_external//:defs.bzl", "maven_install")
50+
4051
maven_install(
4152
artifacts = IO_GRPC_GRPC_JAVA_ARTIFACTS + PROTOBUF_MAVEN_ARTIFACTS,
4253
override_targets = IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS,

0 commit comments

Comments
 (0)