Skip to content

Commit a668374

Browse files
committed
Upgrade to protobuf 3.25.9 / 25.6
- Synchronize buildscripts/make_dependencies.* to Protobuf 25.6 and Abseil 20230802.1 - Align Kokoro Windows CI batch scripts to Protobuf 25.6 - Update README.md and example project build files to Protobuf 3.25.9 - Exclude transitive protobuf 4.x dependencies to enforce strict 3.25.9 resolution
1 parent d51ec50 commit a668374

29 files changed

Lines changed: 39 additions & 35 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ For protobuf-based codegen integrated with the Maven build system, you can use
121121
<artifactId>protobuf-maven-plugin</artifactId>
122122
<version>0.6.1</version>
123123
<configuration>
124-
<protocArtifact>com.google.protobuf:protoc:3.25.8:exe:${os.detected.classifier}</protocArtifact>
124+
<protocArtifact>com.google.protobuf:protoc:3.25.9:exe:${os.detected.classifier}</protocArtifact>
125125
<pluginId>grpc-java</pluginId>
126126
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.83.1:exe:${os.detected.classifier}</pluginArtifact>
127127
</configuration>
@@ -149,7 +149,7 @@ plugins {
149149
150150
protobuf {
151151
protoc {
152-
artifact = "com.google.protobuf:protoc:3.25.8"
152+
artifact = "com.google.protobuf:protoc:3.25.9"
153153
}
154154
plugins {
155155
grpc {
@@ -182,7 +182,7 @@ plugins {
182182
183183
protobuf {
184184
protoc {
185-
artifact = "com.google.protobuf:protoc:3.25.8"
185+
artifact = "com.google.protobuf:protoc:3.25.9"
186186
}
187187
plugins {
188188
grpc {

buildscripts/kokoro/windows32.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ cd "%WORKSPACE%"
2525

2626
SET TARGET_ARCH=x86_32
2727
SET FAIL_ON_WARNINGS=true
28-
SET PROTOBUF_VER=35.1
28+
SET PROTOBUF_VER=25.6
2929
SET PKG_CONFIG_PATH=%ESCWORKSPACE%\\grpc-java-helper32\\protobuf-%PROTOBUF_VER%\\build\\protobuf-%PROTOBUF_VER%\\lib\\pkgconfig
3030
SET VC_PROTOBUF_LIBS=/LIBPATH:%ESCWORKSPACE%\\grpc-java-helper32\\protobuf-%PROTOBUF_VER%\\build\\protobuf-%PROTOBUF_VER%\\lib
3131
SET VC_PROTOBUF_INCLUDE=%ESCWORKSPACE%\\grpc-java-helper32\\protobuf-%PROTOBUF_VER%\\build\\protobuf-%PROTOBUF_VER%\\include

buildscripts/kokoro/windows64.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ cd "%WORKSPACE%"
2424

2525
SET TARGET_ARCH=x86_64
2626
SET FAIL_ON_WARNINGS=true
27-
SET PROTOBUF_VER=35.1
27+
SET PROTOBUF_VER=25.6
2828
SET PKG_CONFIG_PATH=%ESCWORKSPACE%\\grpc-java-helper64\\protobuf-%PROTOBUF_VER%\\build\\protobuf-%PROTOBUF_VER%\\lib\\pkgconfig
2929
SET VC_PROTOBUF_LIBS=/LIBPATH:%ESCWORKSPACE%\\grpc-java-helper64\\protobuf-%PROTOBUF_VER%\\build\\protobuf-%PROTOBUF_VER%\\lib
3030
SET VC_PROTOBUF_INCLUDE=%ESCWORKSPACE%\\grpc-java-helper64\\protobuf-%PROTOBUF_VER%\\build\\protobuf-%PROTOBUF_VER%\\include

buildscripts/make_dependencies.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
choco install -y pkgconfiglite --allow-empty-checksums
22
choco install -y openjdk --version=17.0
33
set PATH=%PATH%;"c:\Program Files\OpenJDK\jdk-17\bin"
4-
set PROTOBUF_VER=35.1
5-
set ABSL_VERSION=20250127.1
4+
set PROTOBUF_VER=25.6
5+
set ABSL_VERSION=20230802.1
66
set CMAKE_NAME=cmake-3.26.3-windows-x86_64
77

88
if not exist "protobuf-%PROTOBUF_VER%\build\Release\" (

buildscripts/make_dependencies.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# Build protoc
44
set -evux -o pipefail
55

6-
PROTOBUF_VERSION=35.1
7-
ABSL_VERSION=20250127.1
6+
PROTOBUF_VERSION=25.6
7+
ABSL_VERSION=20230802.1
88

99
# ARCH is x86_64 bit unless otherwise specified.
1010
ARCH="${ARCH:-x86_64}"

examples/example-alts/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ java {
2222
// Feel free to delete the comment at the next line. It is just for safely
2323
// updating the version in our release process.
2424
def grpcVersion = '1.84.0-SNAPSHOT' // CURRENT_GRPC_VERSION
25-
def protocVersion = '3.25.8'
25+
def protocVersion = '3.25.9'
2626

2727
dependencies {
2828
// grpc-alts transitively depends on grpc-netty-shaded, grpc-protobuf, and grpc-stub

examples/example-debug/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ java {
2424
// Feel free to delete the comment at the next line. It is just for safely
2525
// updating the version in our release process.
2626
def grpcVersion = '1.84.0-SNAPSHOT' // CURRENT_GRPC_VERSION
27-
def protobufVersion = '3.25.8'
27+
def protobufVersion = '3.25.9'
2828

2929
dependencies {
3030
implementation "io.grpc:grpc-protobuf:${grpcVersion}"

examples/example-debug/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<properties>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
<grpc.version>1.84.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
16-
<protoc.version>3.25.8</protoc.version>
16+
<protoc.version>3.25.9</protoc.version>
1717
<!-- required for jdk9 -->
1818
<maven.compiler.source>1.8</maven.compiler.source>
1919
<maven.compiler.target>1.8</maven.compiler.target>

examples/example-dualstack/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ java {
2424
// Feel free to delete the comment at the next line. It is just for safely
2525
// updating the version in our release process.
2626
def grpcVersion = '1.84.0-SNAPSHOT' // CURRENT_GRPC_VERSION
27-
def protobufVersion = '3.25.8'
27+
def protobufVersion = '3.25.9'
2828

2929
dependencies {
3030
implementation "io.grpc:grpc-protobuf:${grpcVersion}"

examples/example-dualstack/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<properties>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
<grpc.version>1.84.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
16-
<protoc.version>3.25.8</protoc.version>
16+
<protoc.version>3.25.9</protoc.version>
1717
<!-- required for jdk9 -->
1818
<maven.compiler.source>1.8</maven.compiler.source>
1919
<maven.compiler.target>1.8</maven.compiler.target>

0 commit comments

Comments
 (0)