Skip to content

Commit c3b2160

Browse files
committed
Generate java client for proto at build
Stop using pre-generated protobuf client libraries, just use the proto files directly when generating clients. This allows us to update proto-gen versions without worrying about conflicts. Signed-off-by: Appu Goundan <[email protected]>
1 parent 1a175b4 commit c3b2160

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

sigstore-java/build.gradle.kts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ dependencies {
2020

2121
implementation("io.github.erdtman:java-json-canonicalization:1.1")
2222

23-
implementation("dev.sigstore:protobuf-specs:0.3.0") {
24-
because("It generates Sigstore Bundle file")
25-
}
26-
implementation(platform("com.google.protobuf:protobuf-bom:3.25.3"))
27-
implementation("com.google.protobuf:protobuf-java-util") {
28-
because("It converts protobuf to json")
29-
}
23+
protobuf("dev.sigstore:protobuf-specs:0.3.0")
24+
protobuf("com.google.api.grpc:proto-google-common-protos:2.37.1")
25+
26+
implementation(platform("com.google.protobuf:protobuf-bom:4.26.1"))
27+
implementation("com.google.protobuf:protobuf-java-util")
3028

3129
// grpc deps
3230
implementation(platform("io.grpc:grpc-bom:1.62.2"))
@@ -64,7 +62,7 @@ dependencies {
6462

6563
protobuf {
6664
protoc {
67-
artifact = "com.google.protobuf:protoc:3.25.3"
65+
artifact = "com.google.protobuf:protoc:4.26.1"
6866
}
6967
plugins {
7068
id("grpc") {

0 commit comments

Comments
 (0)