Skip to content

Commit 63ac6f7

Browse files
Merge branch 'grpc:master' into Issue_fixed_6868
2 parents 0fff264 + 4b5ce99 commit 63ac6f7

292 files changed

Lines changed: 7068 additions & 2321 deletions

File tree

Some content is hidden

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

.github/workflows/testing.yml

Lines changed: 4 additions & 1 deletion
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:
@@ -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

BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
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")
1516
load("@rules_jvm_external//:defs.bzl", "artifact")
1617
load(":java_grpc_library.bzl", "java_grpc_library")
1718

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: 21 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,80 +2,61 @@ module(
22
name = "grpc-java",
33
compatibility_level = 0,
44
repo_name = "io_grpc_grpc_java",
5-
version = "1.75.0-SNAPSHOT", # CURRENT_GRPC_VERSION
5+
version = "1.76.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",
11+
"com.google.api.grpc:proto-google-common-protos:2.59.2",
1212
"com.google.auth:google-auth-library-credentials:1.24.1",
1313
"com.google.auth:google-auth-library-oauth2-http:1.24.1",
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.11.0",
18-
"com.google.errorprone:error_prone_annotations:2.30.0",
18+
"com.google.errorprone:error_prone_annotations:2.36.0",
1919
"com.google.guava:failureaccess:1.0.1",
20-
"com.google.guava:guava:33.3.1-android",
20+
"com.google.guava:guava:33.4.8-android",
2121
"com.google.re2j:re2j:1.8",
22-
"com.google.s2a.proto.v2:s2a-proto:0.1.1",
22+
"com.google.s2a.proto.v2:s2a-proto:0.1.2",
2323
"com.google.truth:truth:1.4.2",
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",
26+
"io.netty:netty-buffer:4.1.124.Final",
27+
"io.netty:netty-codec-http2:4.1.124.Final",
28+
"io.netty:netty-codec-http:4.1.124.Final",
29+
"io.netty:netty-codec-socks:4.1.124.Final",
30+
"io.netty:netty-codec:4.1.124.Final",
31+
"io.netty:netty-common:4.1.124.Final",
32+
"io.netty:netty-handler-proxy:4.1.124.Final",
33+
"io.netty:netty-handler:4.1.124.Final",
34+
"io.netty:netty-resolver:4.1.124.Final",
3535
"io.netty:netty-tcnative-boringssl-static:2.0.70.Final",
3636
"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",
37+
"io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.124.Final",
38+
"io.netty:netty-transport-native-unix-common:4.1.124.Final",
39+
"io.netty:netty-transport:4.1.124.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.checkerframework:checker-qual:3.12.0",
44+
"org.checkerframework:checker-qual:3.49.5",
4545
"org.codehaus.mojo:animal-sniffer-annotations:1.24",
4646
]
4747
# GRPC_DEPS_END
4848

49+
bazel_dep(name = "bazel_jar_jar", version = "0.1.7")
4950
bazel_dep(name = "bazel_skylib", version = "1.7.1")
5051
bazel_dep(name = "googleapis", repo_name = "com_google_googleapis", version = "0.0.0-20240326-1c8d509c5")
51-
52-
# CEL Spec may be removed when cncf/xds MODULE is no longer using protobuf 27.x
53-
bazel_dep(name = "cel-spec", repo_name = "dev_cel", version = "0.15.0")
54-
bazel_dep(name = "grpc", repo_name = "com_github_grpc_grpc", version = "1.56.3.bcr.1")
5552
bazel_dep(name = "grpc-proto", repo_name = "io_grpc_grpc_proto", version = "0.0.0-20240627-ec30f58")
56-
bazel_dep(name = "protobuf", repo_name = "com_google_protobuf", version = "23.1")
53+
# Protobuf 25.5+ is incompatible with Bazel 7 with bzlmod
54+
bazel_dep(name = "protobuf", repo_name = "com_google_protobuf", version = "24.4")
5755
bazel_dep(name = "rules_cc", version = "0.0.9")
5856
bazel_dep(name = "rules_java", version = "5.3.5")
59-
bazel_dep(name = "rules_go", repo_name = "io_bazel_rules_go", version = "0.46.0")
6057
bazel_dep(name = "rules_jvm_external", version = "6.0")
6158
bazel_dep(name = "rules_proto", version = "5.3.0-21.7")
6259

63-
non_module_deps = use_extension("//:repositories.bzl", "grpc_java_repositories_extension")
64-
65-
use_repo(
66-
non_module_deps,
67-
"com_github_cncf_xds",
68-
"envoy_api",
69-
)
70-
71-
grpc_repo_deps_ext = use_extension("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_repo_deps_ext")
72-
73-
use_repo(
74-
grpc_repo_deps_ext,
75-
"com_envoyproxy_protoc_gen_validate",
76-
"opencensus_proto",
77-
)
78-
7960
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
8061

8162
maven.install(
@@ -202,7 +183,3 @@ maven.override(
202183
coordinates = "io.grpc:grpc-util",
203184
target = "@io_grpc_grpc_java//util",
204185
)
205-
206-
switched_rules = use_extension("@com_google_googleapis//:extensions.bzl", "switched_rules")
207-
208-
switched_rules.use_languages(java = True)

README.md

Lines changed: 15 additions & 23 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.73.0/examples) and the
48-
[Android example](https://github.com/grpc/grpc-java/tree/v1.73.0/examples/android)
47+
The [examples](https://github.com/grpc/grpc-java/tree/v1.75.0/examples) and the
48+
[Android example](https://github.com/grpc/grpc-java/tree/v1.75.0/examples/android)
4949
are standalone projects that showcase the usage of gRPC.
5050

5151
Download
@@ -56,50 +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.73.0</version>
59+
<version>1.75.0</version>
6060
<scope>runtime</scope>
6161
</dependency>
6262
<dependency>
6363
<groupId>io.grpc</groupId>
6464
<artifactId>grpc-protobuf</artifactId>
65-
<version>1.73.0</version>
65+
<version>1.75.0</version>
6666
</dependency>
6767
<dependency>
6868
<groupId>io.grpc</groupId>
6969
<artifactId>grpc-stub</artifactId>
70-
<version>1.73.0</version>
71-
</dependency>
72-
<dependency> <!-- necessary for Java 9+ -->
73-
<groupId>org.apache.tomcat</groupId>
74-
<artifactId>annotations-api</artifactId>
75-
<version>6.0.53</version>
76-
<scope>provided</scope>
70+
<version>1.75.0</version>
7771
</dependency>
7872
```
7973

8074
Or for Gradle with non-Android, add to your dependencies:
8175
```gradle
82-
runtimeOnly 'io.grpc:grpc-netty-shaded:1.73.0'
83-
implementation 'io.grpc:grpc-protobuf:1.73.0'
84-
implementation 'io.grpc:grpc-stub:1.73.0'
85-
compileOnly 'org.apache.tomcat:annotations-api:6.0.53' // necessary for Java 9+
76+
runtimeOnly 'io.grpc:grpc-netty-shaded:1.75.0'
77+
implementation 'io.grpc:grpc-protobuf:1.75.0'
78+
implementation 'io.grpc:grpc-stub:1.75.0'
8679
```
8780

8881
For Android client, use `grpc-okhttp` instead of `grpc-netty-shaded` and
8982
`grpc-protobuf-lite` instead of `grpc-protobuf`:
9083
```gradle
91-
implementation 'io.grpc:grpc-okhttp:1.73.0'
92-
implementation 'io.grpc:grpc-protobuf-lite:1.73.0'
93-
implementation 'io.grpc:grpc-stub:1.73.0'
94-
compileOnly 'org.apache.tomcat:annotations-api:6.0.53' // necessary for Java 9+
84+
implementation 'io.grpc:grpc-okhttp:1.75.0'
85+
implementation 'io.grpc:grpc-protobuf-lite:1.75.0'
86+
implementation 'io.grpc:grpc-stub:1.75.0'
9587
```
9688

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

10193
[the JARs]:
102-
https://search.maven.org/search?q=g:io.grpc%20AND%20v:1.73.0
94+
https://search.maven.org/search?q=g:io.grpc%20AND%20v:1.75.0
10395

10496
Development snapshots are available in [Sonatypes's snapshot
10597
repository](https://central.sonatype.com/repository/maven-snapshots/).
@@ -131,7 +123,7 @@ For protobuf-based codegen integrated with the Maven build system, you can use
131123
<configuration>
132124
<protocArtifact>com.google.protobuf:protoc:3.25.5:exe:${os.detected.classifier}</protocArtifact>
133125
<pluginId>grpc-java</pluginId>
134-
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.73.0:exe:${os.detected.classifier}</pluginArtifact>
126+
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.75.0:exe:${os.detected.classifier}</pluginArtifact>
135127
</configuration>
136128
<executions>
137129
<execution>
@@ -161,7 +153,7 @@ protobuf {
161153
}
162154
plugins {
163155
grpc {
164-
artifact = 'io.grpc:protoc-gen-grpc-java:1.73.0'
156+
artifact = 'io.grpc:protoc-gen-grpc-java:1.75.0'
165157
}
166158
}
167159
generateProtoTasks {
@@ -194,7 +186,7 @@ protobuf {
194186
}
195187
plugins {
196188
grpc {
197-
artifact = 'io.grpc:protoc-gen-grpc-java:1.73.0'
189+
artifact = 'io.grpc:protoc-gen-grpc-java:1.75.0'
198190
}
199191
}
200192
generateProtoTasks {

SECURITY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,8 @@ grpc-netty version | netty-handler version | netty-tcnative-boringssl-static ver
400400
1.59.x | 4.1.97.Final | 2.0.61.Final
401401
1.60.x-1.66.x | 4.1.100.Final | 2.0.61.Final
402402
1.67.x-1.70.x | 4.1.110.Final | 2.0.65.Final
403-
1.71.x- | 4.1.110.Final | 2.0.70.Final
403+
1.71.x-1.74.x | 4.1.110.Final | 2.0.70.Final
404+
1.75.x- | 4.1.124.Final | 2.0.72.Final
404405

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

WORKSPACE

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,19 @@ load("//:repositories.bzl", "grpc_java_repositories")
2222

2323
grpc_java_repositories()
2424

25+
load("@bazel_jar_jar//:jar_jar.bzl", "jar_jar_repositories")
26+
27+
jar_jar_repositories()
28+
2529
load("@com_google_protobuf//:protobuf_deps.bzl", "PROTOBUF_MAVEN_ARTIFACTS")
2630
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
2731

2832
protobuf_deps()
2933

30-
load("@envoy_api//bazel:repositories.bzl", "api_dependencies")
31-
32-
api_dependencies()
33-
3434
load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language")
3535

3636
switched_rules_by_language(
3737
name = "com_google_googleapis_imports",
38-
java = True,
3938
)
4039

4140
maven_install(

alts/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@rules_java//java:defs.bzl", "java_library", "java_proto_library")
12
load("@rules_jvm_external//:defs.bzl", "artifact")
23
load("@rules_proto//proto:defs.bzl", "proto_library")
34
load("//:java_grpc_library.bzl", "java_grpc_library")

alts/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ dependencies {
2222
libraries.guava.jre, // JRE required by protobuf-java-util from grpclb
2323
libraries.google.auth.oauth2Http
2424
def nettyDependency = implementation project(':grpc-netty')
25-
compileOnly libraries.javax.annotation
2625

2726
shadow configurations.implementation.getDependencies().minus(nettyDependency)
2827
shadow project(path: ':grpc-netty-shaded', configuration: 'shadow')

android-interop-testing/build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repositories {
1010
}
1111

1212
android {
13-
namespace 'io.grpc.android.integrationtest'
13+
namespace = 'io.grpc.android.integrationtest'
1414
sourceSets {
1515
main {
1616
java {
@@ -41,7 +41,7 @@ android {
4141
versionCode 1
4242
versionName "1.0"
4343
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
44-
multiDexEnabled true
44+
multiDexEnabled = true
4545
}
4646
buildTypes {
4747
debug { minifyEnabled false }
@@ -83,8 +83,6 @@ dependencies {
8383
exclude group: 'com.google.guava'
8484
}
8585

86-
compileOnly libraries.javax.annotation
87-
8886
androidTestImplementation 'androidx.test.ext:junit:1.1.3',
8987
'androidx.test:runner:1.4.0'
9088
}

0 commit comments

Comments
 (0)