Skip to content

Commit cdef03b

Browse files
committed
2 parents 20d60dd + d947c80 commit cdef03b

File tree

81 files changed

+2044
-1169
lines changed

Some content is hidden

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

81 files changed

+2044
-1169
lines changed

.github/workflows/testing.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

MODULE.bazel

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -46,36 +46,16 @@ IO_GRPC_GRPC_JAVA_ARTIFACTS = [
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")
5653
bazel_dep(name = "protobuf", repo_name = "com_google_protobuf", version = "23.1")
5754
bazel_dep(name = "rules_cc", version = "0.0.9")
5855
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")
6056
bazel_dep(name = "rules_jvm_external", version = "6.0")
6157
bazel_dep(name = "rules_proto", version = "5.3.0-21.7")
6258

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-
7959
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
8060

8161
maven.install(
@@ -202,7 +182,3 @@ maven.override(
202182
coordinates = "io.grpc:grpc-util",
203183
target = "@io_grpc_grpc_java//util",
204184
)
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 & 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.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.74.0/examples) and the
48+
[Android example](https://github.com/grpc/grpc-java/tree/v1.74.0/examples/android)
4949
are standalone projects that showcase the usage of gRPC.
5050

5151
Download
@@ -56,18 +56,18 @@ 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.74.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.74.0</version>
6666
</dependency>
6767
<dependency>
6868
<groupId>io.grpc</groupId>
6969
<artifactId>grpc-stub</artifactId>
70-
<version>1.73.0</version>
70+
<version>1.74.0</version>
7171
</dependency>
7272
<dependency> <!-- necessary for Java 9+ -->
7373
<groupId>org.apache.tomcat</groupId>
@@ -79,18 +79,18 @@ Download [the JARs][]. Or for Maven with non-Android, add to your `pom.xml`:
7979

8080
Or for Gradle with non-Android, add to your dependencies:
8181
```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'
82+
runtimeOnly 'io.grpc:grpc-netty-shaded:1.74.0'
83+
implementation 'io.grpc:grpc-protobuf:1.74.0'
84+
implementation 'io.grpc:grpc-stub:1.74.0'
8585
compileOnly 'org.apache.tomcat:annotations-api:6.0.53' // necessary for Java 9+
8686
```
8787

8888
For Android client, use `grpc-okhttp` instead of `grpc-netty-shaded` and
8989
`grpc-protobuf-lite` instead of `grpc-protobuf`:
9090
```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'
91+
implementation 'io.grpc:grpc-okhttp:1.74.0'
92+
implementation 'io.grpc:grpc-protobuf-lite:1.74.0'
93+
implementation 'io.grpc:grpc-stub:1.74.0'
9494
compileOnly 'org.apache.tomcat:annotations-api:6.0.53' // necessary for Java 9+
9595
```
9696

@@ -99,7 +99,7 @@ For [Bazel](https://bazel.build), you can either
9999
(with the GAVs from above), or use `@io_grpc_grpc_java//api` et al (see below).
100100

101101
[the JARs]:
102-
https://search.maven.org/search?q=g:io.grpc%20AND%20v:1.73.0
102+
https://search.maven.org/search?q=g:io.grpc%20AND%20v:1.74.0
103103

104104
Development snapshots are available in [Sonatypes's snapshot
105105
repository](https://central.sonatype.com/repository/maven-snapshots/).
@@ -131,7 +131,7 @@ For protobuf-based codegen integrated with the Maven build system, you can use
131131
<configuration>
132132
<protocArtifact>com.google.protobuf:protoc:3.25.5:exe:${os.detected.classifier}</protocArtifact>
133133
<pluginId>grpc-java</pluginId>
134-
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.73.0:exe:${os.detected.classifier}</pluginArtifact>
134+
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.74.0:exe:${os.detected.classifier}</pluginArtifact>
135135
</configuration>
136136
<executions>
137137
<execution>
@@ -161,7 +161,7 @@ protobuf {
161161
}
162162
plugins {
163163
grpc {
164-
artifact = 'io.grpc:protoc-gen-grpc-java:1.73.0'
164+
artifact = 'io.grpc:protoc-gen-grpc-java:1.74.0'
165165
}
166166
}
167167
generateProtoTasks {
@@ -194,7 +194,7 @@ protobuf {
194194
}
195195
plugins {
196196
grpc {
197-
artifact = 'io.grpc:protoc-gen-grpc-java:1.73.0'
197+
artifact = 'io.grpc:protoc-gen-grpc-java:1.74.0'
198198
}
199199
}
200200
generateProtoTasks {

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(

android-interop-testing/build.gradle

Lines changed: 2 additions & 2 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 }

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
description = 'gRPC: Android'
88

99
android {
10-
namespace 'io.grpc.android'
10+
namespace = 'io.grpc.android'
1111
compileOptions {
1212
sourceCompatibility JavaVersion.VERSION_1_8
1313
targetCompatibility JavaVersion.VERSION_1_8
@@ -20,7 +20,7 @@ android {
2020
versionName "1.0"
2121
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2222
}
23-
lintOptions { abortOnError true }
23+
lintOptions { abortOnError = true }
2424
publishing {
2525
singleVariant('release') {
2626
withSourcesJar()

binder/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
description = 'gRPC BinderChannel'
77

88
android {
9-
namespace 'io.grpc.binder'
9+
namespace = 'io.grpc.binder'
1010
compileSdkVersion 34
1111
compileOptions {
1212
sourceCompatibility 1.8
@@ -18,16 +18,16 @@ android {
1818
versionCode 1
1919
versionName "1.0"
2020
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
21-
multiDexEnabled true
21+
multiDexEnabled = true
2222
}
23-
lintOptions { abortOnError false }
23+
lintOptions { abortOnError = false }
2424
publishing {
2525
singleVariant('release') {
2626
withSourcesJar()
2727
withJavadocJar()
2828
}
2929
}
30-
testFixtures { enable true }
30+
testFixtures { enable = true }
3131
}
3232

3333
repositories {

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ subprojects {
2525

2626
repositories {
2727
maven { // The google mirror is less flaky than mavenCentral()
28-
url "https://maven-central.storage-download.googleapis.com/maven2/"
28+
url = "https://maven-central.storage-download.googleapis.com/maven2/"
2929
metadataSources {
3030
mavenPom()
3131
ignoreGradleMetadataRedirection()
@@ -241,9 +241,9 @@ subprojects {
241241
tasks.named("test").configure {
242242
testLogging {
243243
exceptionFormat = 'full'
244-
showExceptions true
245-
showCauses true
246-
showStackTraces true
244+
showExceptions = true
245+
showCauses = true
246+
showStackTraces = true
247247
}
248248
maxHeapSize = '1500m'
249249
}
@@ -410,7 +410,7 @@ subprojects {
410410
}
411411

412412
signing {
413-
required false
413+
required = false
414414
sign publishing.publications.maven
415415
}
416416

census/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies {
4040
}
4141

4242
tasks.named("javadoc").configure {
43-
failOnError false // no public or protected classes found to document
43+
failOnError = false // no public or protected classes found to document
4444
exclude 'io/grpc/census/internal/**'
4545
exclude 'io/grpc/census/Internal*'
4646
}

compiler/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ cc_binary(
1818

1919
java_library(
2020
name = "java_grpc_library_deps__do_not_reference",
21+
visibility = ["//xds:__pkg__"],
2122
exports = [
2223
"//api",
2324
"//protobuf",

0 commit comments

Comments
 (0)