Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #4845] Apply dependency management to grpcVersion and protobufVersion. #4988

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,8 @@ subprojects {
def cloudeventsVersion = '2.5.0'
def curatorVersion = '5.6.0'
def mockitoVersion = '3.12.4'
def protobufVersion = '3.25.3'
def protocVersion = protobufVersion

dependencyManagement {
dependencies {
Expand Down Expand Up @@ -757,6 +759,10 @@ subprojects {

dependency "com.baomidou:mybatis-plus:3.5.6"
dependency "com.mysql:mysql-connector-j:8.0.33"

dependency "com.google.protobuf:protobuf-java-util:${protobufVersion}"
dependency "com.google.protobuf:protobuf-java:${protobufVersion}"
dependency "com.google.protobuf:protoc:${protocVersion}"
}
}
}
6 changes: 3 additions & 3 deletions eventmesh-meta/eventmesh-meta-raft/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ dependencies {
implementation ("io.grpc:grpc-protobuf") {
exclude group: "com.google.protobuf", module: "protobuf-java"
}
implementation("com.google.protobuf:protobuf-java:${protobufVersion}")
implementation("com.google.protobuf:protobuf-java")
implementation "io.grpc:grpc-stub"
implementation "com.google.protobuf:protobuf-java-util:${protobufVersion}"
implementation "com.google.protobuf:protobuf-java-util"
implementation "javax.annotation:javax.annotation-api:1.3.2"
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
Expand All @@ -43,7 +43,7 @@ dependencies {
}

protobuf {
protoc { artifact = "com.google.protobuf:protoc:${protocVersion}" }
protoc { artifact = "com.google.protobuf:protoc" }
plugins {
grpc { artifact = "io.grpc:protoc-gen-grpc-java" }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ dependencies {
implementation ("io.grpc:grpc-protobuf") {
exclude group: "com.google.protobuf", module: "protobuf-java"
}
implementation("com.google.protobuf:protobuf-java:${protobufVersion}")
implementation("com.google.protobuf:protobuf-java")
Pil0tXia marked this conversation as resolved.
Show resolved Hide resolved
implementation "io.grpc:grpc-stub"
implementation "com.google.protobuf:protobuf-java-util:${protobufVersion}"
implementation "com.google.protobuf:protobuf-java-util"
implementation "javax.annotation:javax.annotation-api:1.3.2"
testImplementation 'org.junit.jupiter:junit-jupiter'
}

protobuf {
protoc { artifact = "com.google.protobuf:protoc:${protocVersion}" }
protoc { artifact = "com.google.protobuf:protoc" }
plugins {
grpc { artifact = "io.grpc:protoc-gen-grpc-java" }
}
Expand Down
2 changes: 1 addition & 1 deletion eventmesh-sdks/eventmesh-sdk-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ dependencies {

implementation "io.grpc:grpc-protobuf"
implementation "io.grpc:grpc-stub"
implementation "com.google.protobuf:protobuf-java-util:3.25.3"
implementation "com.google.protobuf:protobuf-java-util"
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'

Expand Down