Skip to content

Commit 43dd980

Browse files
Protobuf: bump to 29.1 (#2800)
* typo fix Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
1 parent 539da64 commit 43dd980

File tree

5 files changed

+18
-31
lines changed

5 files changed

+18
-31
lines changed

.github/workflows/java-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
- name: Install protoc (protobuf)
103103
uses: arduino/setup-protoc@v3
104104
with:
105-
version: "28.2"
105+
version: "29.1"
106106
repo-token: ${{ secrets.GITHUB_TOKEN }}
107107

108108
- name: Create secret key ring file
@@ -245,7 +245,7 @@ jobs:
245245
- name: Install protoc (protobuf)
246246
uses: arduino/setup-protoc@v3
247247
with:
248-
version: "28.2"
248+
version: "29.1"
249249
repo-token: ${{ secrets.GITHUB_TOKEN }}
250250

251251
- name: Start standalone Valkey server

.github/workflows/java.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
- name: Install protoc (protobuf)
104104
uses: arduino/setup-protoc@v3
105105
with:
106-
version: "28.2"
106+
version: "29.1"
107107
repo-token: ${{ secrets.GITHUB_TOKEN }}
108108

109109
- name: Build java client
@@ -184,7 +184,7 @@ jobs:
184184
- name: Install protoc (protobuf)
185185
uses: arduino/setup-protoc@v3
186186
with:
187-
version: "28.2"
187+
version: "29.1"
188188
repo-token: ${{ secrets.GITHUB_TOKEN }}
189189

190190
- name: Build java wrapper
@@ -235,7 +235,7 @@ jobs:
235235
- name: Install protoc (protobuf)
236236
uses: arduino/setup-protoc@v3
237237
with:
238-
version: "26.1"
238+
version: "29.1"
239239
repo-token: ${{ secrets.GITHUB_TOKEN }}
240240

241241
- name: Test java wrapper

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#### Changes
2-
* Java: Bump protobuf (protoc) version ([#2796](https://github.com/valkey-io/valkey-glide/pull/2796))
2+
* Java: Bump protobuf (protoc) version ([#2796](https://github.com/valkey-io/valkey-glide/pull/2796), [#2800](https://github.com/valkey-io/valkey-glide/pull/2800))
33

44
#### Breaking Changes
55

java/DEVELOPER.md

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The Valkey GLIDE Java wrapper consists of both Java and Rust code. Rust bindings
1717
- git
1818
- GCC
1919
- pkg-config
20-
- protoc (protobuf compiler) >= 28.2
20+
- protoc (protobuf compiler) >= 29.1
2121
- openssl
2222
- openssl-dev
2323
- rustup
@@ -64,17 +64,17 @@ Continue with **Install protobuf compiler** below.
6464
To install protobuf for MacOS, run:
6565
```bash
6666
brew install protobuf
67-
# Check that the protobuf compiler version 28.2 or higher is installed
67+
# Check that the protobuf compiler version 29.1 or higher is installed
6868
protoc --version
6969
```
7070

7171
For the remaining systems, do the following:
7272
```bash
7373
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
74-
curl -LO $PB_REL/download/v28.2/protoc-28.2-linux-x86_64.zip
75-
unzip protoc-28.2-linux-x86_64.zip -d $HOME/.local
74+
curl -LO $PB_REL/download/v29.1/protoc-29.1-linux-x86_64.zip
75+
unzip protoc-29.1-linux-x86_64.zip -d $HOME/.local
7676
export PATH="$PATH:$HOME/.local/bin"
77-
# Check that the protobuf compiler version 28.2 or higher is installed
77+
# Check that the protobuf compiler version 29.1 or higher is installed
7878
protoc --version
7979
```
8080

@@ -87,11 +87,7 @@ Before starting this step, make sure you've installed all software dependencies.
8787
git clone https://github.com/valkey-io/valkey-glide.git
8888
cd valkey-glide/java
8989
```
90-
2. Initialize git submodule:
91-
```bash
92-
git submodule update --init --recursive
93-
```
94-
3. Build the Java wrapper (Choose a build option from the following and run it from the `java` folder):
90+
2. Build the Java wrapper (Choose a build option from the following and run it from the `java` folder):
9591

9692
1. Enter the java directory:
9793

@@ -164,8 +160,7 @@ Some troubleshooting issues:
164160
you may need to restart your machine. In particular, this may solve the following problems:
165161
- Failed to find `cargo` after `rustup`.
166162
- No Protobuf compiler (protoc) found.
167-
- If build fails because of rust compiler fails, make sure submodules are updated using `git submodule update`.
168-
- If protobuf 28.0 or earlier is detected, upgrade to the latest protobuf release.
163+
- If protobuf 29.0 or earlier is detected, upgrade to the latest protobuf release.
169164
170165
## Running Examples App
171166
@@ -275,14 +270,6 @@ To (re)generate protobuf code, use the following command:
275270
./gradlew protobuf
276271
```
277272

278-
### Submodules
279-
280-
After pulling new changes, ensure that you update the submodules by running the following command:
281-
282-
```bash
283-
git submodule update
284-
```
285-
286273
### Contributing new ValKey commands
287274

288275
A Valkey command can either have a standalone or cluster implementation which is dependent on their specifications.

java/client/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repositories {
1414
}
1515

1616
dependencies {
17-
implementation group: 'com.google.protobuf', name: 'protobuf-java', version: '4.28.2'
17+
implementation group: 'com.google.protobuf', name: 'protobuf-java', version: '4.29.1'
1818
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.13.0'
1919

2020
implementation group: 'io.netty', name: 'netty-handler', version: '4.1.100.Final'
@@ -38,11 +38,11 @@ dependencies {
3838

3939
ext {
4040
checkProtocVersion = { String output ->
41-
// Line in format like: libprotoc 28.1
41+
// Line in format like: libprotoc 29.1
4242
int majorVersion = Integer.parseInt(output.split(" ")[1].split("\\.")[0].trim());
4343
int minorVersion = Integer.parseInt(output.split(" ")[1].split("\\.")[1].trim());
44-
if (majorVersion < 28) {
45-
throw new GradleException("Protobuf compiler (protoc) version 28.0 or newer is required. Current version: $output");
44+
if (majorVersion < 29) {
45+
throw new GradleException("Protobuf compiler (protoc) version 29.0 or newer is required. Current version: $output");
4646
}
4747
return output.split(" ")[1]
4848
}
@@ -61,7 +61,7 @@ tasks.register('protobuf', Exec) {
6161
}
6262
} catch (Exception e) {
6363
if (e.getMessage().startsWith("A problem occurred starting process")) {
64-
throw new GradleException("No Protobuf compiler (protoc) found. Protobuf compiler version 28.0 or newer is required.");
64+
throw new GradleException("No Protobuf compiler (protoc) found. Protobuf compiler version 29.0 or newer is required.");
6565
}
6666
throw e
6767
}

0 commit comments

Comments
 (0)