Skip to content

Commit

Permalink
delete ext version
Browse files Browse the repository at this point in the history
  • Loading branch information
pmupkin committed Jun 8, 2024
1 parent 9a51e8b commit efd60cf
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 23 deletions.
15 changes: 7 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -654,9 +654,8 @@ subprojects {
sign publishing.publications.mavenJava
}

ext {
grpcVersion = '1.63.0'
}
def grpcVersion = '1.63.0'

def log4jVersion = '2.22.1'

dependencyManagement {
Expand Down Expand Up @@ -725,11 +724,11 @@ subprojects {
dependency "io.cloudevents:cloudevents-json-jackson:2.4.2"
dependency "io.cloudevents:cloudevents-protobuf:2.4.2"

dependency "io.grpc:grpc-core:${project.ext.grpcVersion}"
dependency "io.grpc:grpc-protobuf:${project.ext.grpcVersion}"
dependency "io.grpc:grpc-stub:${project.ext.grpcVersion}"
dependency "io.grpc:grpc-netty:${project.ext.grpcVersion}"
dependency "io.grpc:grpc-netty-shaded:${project.ext.grpcVersion}"
dependency "io.grpc:grpc-core:${grpcVersion}"
dependency "io.grpc:grpc-protobuf:${grpcVersion}"
dependency "io.grpc:grpc-stub:${grpcVersion}"
dependency "io.grpc:grpc-netty:${grpcVersion}"
dependency "io.grpc:grpc-netty-shaded:${grpcVersion}"

dependency "javax.annotation:javax.annotation-api:1.3.2"

Expand Down
4 changes: 2 additions & 2 deletions eventmesh-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ dependencies {

implementation "io.netty:netty-all"

implementation "io.grpc:grpc-protobuf:${project.ext.grpcVersion}"
implementation "io.grpc:grpc-stub:${project.ext.grpcVersion}"
implementation "io.grpc:grpc-protobuf"
implementation "io.grpc:grpc-stub"
implementation "javax.annotation:javax.annotation-api:1.3.2"

testImplementation "org.junit-pioneer:junit-pioneer"
Expand Down
8 changes: 4 additions & 4 deletions eventmesh-examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ dependencies {
implementation "io.openmessaging:openmessaging-api"
implementation 'com.alibaba.nacos:nacos-client'

implementation "io.grpc:grpc-protobuf:${project.ext.grpcVersion}"
implementation "io.grpc:grpc-stub:${project.ext.grpcVersion}"
implementation "io.grpc:grpc-netty:${project.ext.grpcVersion}"
implementation "io.grpc:grpc-netty-shaded:${project.ext.grpcVersion}"
implementation "io.grpc:grpc-protobuf"
implementation "io.grpc:grpc-stub"
implementation "io.grpc:grpc-netty"
implementation "io.grpc:grpc-netty-shaded"

compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ def protobufVersion = '3.25.1'
def protocVersion = protobufVersion

dependencies {
implementation ("io.grpc:grpc-protobuf:${project.ext.grpcVersion}") {
implementation ("io.grpc:grpc-protobuf") {
exclude group: "com.google.protobuf", module: "protobuf-java"
}
implementation("com.google.protobuf:protobuf-java:${protobufVersion}")
implementation "io.grpc:grpc-stub:${project.ext.grpcVersion}"
implementation "io.grpc:grpc-stub"
implementation "com.google.protobuf:protobuf-java-util:${protobufVersion}"
implementation "javax.annotation:javax.annotation-api:1.3.2"
testImplementation 'org.junit.jupiter:junit-jupiter:5.6.0'
Expand All @@ -42,7 +42,7 @@ dependencies {
protobuf {
protoc { artifact = "com.google.protobuf:protoc:${protocVersion}" }
plugins {
grpc { artifact = "io.grpc:protoc-gen-grpc-java:${project.ext.grpcVersion}" }
grpc { artifact = "io.grpc:protoc-gen-grpc-java" }
}
generateProtoTasks {
all()*.plugins {
Expand Down
12 changes: 6 additions & 6 deletions eventmesh-sdks/eventmesh-sdk-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ dependencies {
implementation "io.netty:netty-all"
implementation "org.apache.httpcomponents:httpclient"

implementation "io.grpc:grpc-protobuf:${project.ext.grpcVersion}"
implementation "io.grpc:grpc-stub:${project.ext.grpcVersion}"
implementation "io.grpc:grpc-netty:${project.ext.grpcVersion}"
implementation "io.grpc:grpc-netty-shaded:${project.ext.grpcVersion}"
implementation "io.grpc:grpc-protobuf"
implementation "io.grpc:grpc-stub"
implementation "io.grpc:grpc-netty"
implementation "io.grpc:grpc-netty-shaded"
implementation "io.cloudevents:cloudevents-protobuf"

// protocol
Expand All @@ -50,8 +50,8 @@ dependencies {
testImplementation "io.netty:netty-all"
testImplementation "org.apache.httpcomponents:httpclient"

implementation "io.grpc:grpc-protobuf:${project.ext.grpcVersion}"
implementation "io.grpc:grpc-stub:${project.ext.grpcVersion}"
implementation "io.grpc:grpc-protobuf"
implementation "io.grpc:grpc-stub"
implementation "com.google.protobuf:protobuf-java-util:3.25.1"
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
Expand Down

0 comments on commit efd60cf

Please sign in to comment.