Skip to content

Commit

Permalink
Merge pull request #1192 from LIU-WEI-git/grpc_upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
qqeasonchen authored Aug 30, 2022
2 parents 8010564 + 86b3678 commit ddeb9a4
Show file tree
Hide file tree
Showing 15 changed files with 58 additions and 41 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ build
.checkstyle
test-output
dist
out
.pmd
classes
package-lock.json
Expand Down
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ subprojects {
sign publishing.publications.mavenJava
}

def grpcVersion = '1.42.2'

dependencyManagement {
dependencies {
dependency "org.apache.commons:commons-lang3:3.6"
Expand Down Expand Up @@ -477,10 +479,10 @@ subprojects {
dependency "io.cloudevents:cloudevents-core:2.2.0"
dependency "io.cloudevents:cloudevents-json-jackson:2.2.0"

dependency "io.grpc:grpc-protobuf:1.17.1"
dependency "io.grpc:grpc-stub:1.17.1"
dependency "io.grpc:grpc-netty:1.17.1"
dependency "io.grpc:grpc-netty-shaded:1.17.1"
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
6 changes: 4 additions & 2 deletions eventmesh-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

def grpcVersion = '1.42.2'

dependencies {
api "com.google.guava:guava"
api "org.slf4j:slf4j-api"
Expand All @@ -39,8 +41,8 @@ dependencies {

implementation "io.netty:netty-all"

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

implementation "com.github.stefanbirkner:system-rules"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/
@SuppressWarnings({"all"})
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.17.1)",
value = "by gRPC proto compiler (version 1.42.2)",
comments = "Source: eventmesh-client.proto")
public final class ConsumerServiceGrpc {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/
@SuppressWarnings({"all"})
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.17.1)",
value = "by gRPC proto compiler (version 1.42.2)",
comments = "Source: eventmesh-client.proto")
public final class HeartbeatServiceGrpc {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/
@SuppressWarnings({"all"})
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.17.1)",
value = "by gRPC proto compiler (version 1.42.2)",
comments = "Source: eventmesh-client.proto")
public final class PublisherServiceGrpc {

Expand Down
2 changes: 1 addition & 1 deletion eventmesh-examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

def grpcVersion = '1.17.1'
def grpcVersion = '1.42.2'

configurations {
implementation.exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ dependencies {
implementation "io.cloudevents:cloudevents-core"
implementation "com.google.guava:guava"
implementation "io.cloudevents:cloudevents-json-jackson"
implementation "io.grpc:grpc-protobuf:1.17.1"
implementation ("io.grpc:grpc-protobuf:1.42.2") {
exclude group: "com.google.protobuf", module: "protobuf-java"
}
implementation("com.google.protobuf:protobuf-java:3.21.5")
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ repositories {
mavenCentral()
}

def grpcVersion = '1.17.1' // CURRENT_GRPC_VERSION
def protobufVersion = '3.5.1'
def grpcVersion = '1.42.2' // CURRENT_GRPC_VERSION
def protobufVersion = '3.21.5'
def protocVersion = protobufVersion

dependencies {
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
implementation ("io.grpc:grpc-protobuf:${grpcVersion}") {
exclude group: "com.google.protobuf", module: "protobuf-java"
}
implementation("com.google.protobuf:protobuf-java:${protobufVersion}")
implementation "io.grpc:grpc-stub:${grpcVersion}"
implementation "com.google.protobuf:protobuf-java-util:${protobufVersion}"
implementation "javax.annotation:javax.annotation-api:1.3.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ dependencies {
implementation "io.cloudevents:cloudevents-core"
implementation "com.google.guava:guava"
implementation "io.cloudevents:cloudevents-json-jackson"
implementation "io.grpc:grpc-protobuf:1.17.1"
implementation ("io.grpc:grpc-protobuf:1.42.2") {
exclude group: "com.google.protobuf", module: "protobuf-java"
}
implementation("com.google.protobuf:protobuf-java:3.21.5")
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
dependencies {
implementation project(":eventmesh-protocol-plugin:eventmesh-protocol-api")
implementation "io.cloudevents:cloudevents-core"
implementation "io.grpc:grpc-protobuf:1.17.1"
implementation ("io.grpc:grpc-protobuf:1.42.2") {
exclude group: "com.google.protobuf", module: "protobuf-java"
}
implementation("com.google.protobuf:protobuf-java:3.21.5")

testImplementation project(":eventmesh-protocol-plugin:eventmesh-protocol-api")
testImplementation "io.cloudevents:cloudevents-core"
Expand Down
2 changes: 1 addition & 1 deletion eventmesh-runtime/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

def grpcVersion = '1.17.1'
def grpcVersion = '1.42.2'

dependencies {
implementation 'io.cloudevents:cloudevents-core'
Expand Down
8 changes: 4 additions & 4 deletions eventmesh-sdk-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

def grpcVersion = '1.17.1'
def grpcVersion = '1.42.2'

dependencies {
api project(":eventmesh-common")
Expand Down Expand Up @@ -47,9 +47,9 @@ dependencies {
testImplementation "io.netty:netty-all"
testImplementation "org.apache.httpcomponents:httpclient"

implementation "io.grpc:grpc-protobuf:1.17.1"
implementation "io.grpc:grpc-stub:1.17.1"
implementation "com.google.protobuf:protobuf-java-util:3.5.1"
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
implementation "io.grpc:grpc-stub:${grpcVersion}"
implementation "com.google.protobuf:protobuf-java-util:3.21.5"
compileOnly 'org.projectlombok:lombok:1.18.22'
annotationProcessor 'org.projectlombok:lombok:1.18.22'

Expand Down
20 changes: 10 additions & 10 deletions tools/dependency-check/known-dependencies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ dledger-0.2.3.jar
error_prone_annotations-2.7.1.jar
failureaccess-1.0.1.jar
fastjson-1.2.76.jar
grpc-context-1.17.1.jar
grpc-core-1.17.1.jar
grpc-netty-1.17.1.jar
grpc-netty-shaded-1.17.1.jar
grpc-protobuf-1.17.1.jar
grpc-protobuf-lite-1.17.1.jar
grpc-stub-1.17.1.jar
grpc-grpclb-1.17.1.jar
grpc-context-1.42.2.jar
grpc-core-1.42.2.jar
grpc-netty-1.42.2.jar
grpc-netty-shaded-1.42.2.jar
grpc-protobuf-1.42.2.jar
grpc-protobuf-lite-1.42.2.jar
grpc-stub-1.42.2.jar
grpc-grpclb-1.42.2.jar
gson-2.8.2.jar
guava-31.0.1-jre.jar
hamcrest-core-1.3.jar
Expand Down Expand Up @@ -111,8 +111,8 @@ opentelemetry-sdk-metrics-1.3.0-alpha.jar
opentelemetry-sdk-trace-1.3.0.jar
opentelemetry-semconv-1.3.0-alpha.jar
proto-google-common-protos-1.0.0.jar
protobuf-java-3.5.1.jar
protobuf-java-util-3.5.1.jar
protobuf-java-3.21.5.jar
protobuf-java-util-3.21.5.jar
reflections-0.9.11.jar
rocketmq-acl-4.9.3.jar
rocketmq-broker-4.9.3.jar
Expand Down
20 changes: 10 additions & 10 deletions tools/third-party-licenses/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,14 @@ The text of each license is also included at licenses/LICENSE-[project].txt.
listenablefuture 9999.0-empty-to-avoid-conflict-with-guava: https://github.com/google/guava, Apache 2.0
fastjson 1.2.76: https://github.com/alibaba/fastjson, Apache 2.0
guava 31.0.1-jre: https://github.com/google/guava, Apache 2.0
grpc-context 1.17.1: https://github.com/grpc/grpc-java, Apache 2.0
grpc-core 1.17.1: https://github.com/grpc/grpc-java, Apache 2.0
grpc-netty 1.17.1: https://github.com/grpc/grpc-java, Apache 2.0
grpc-netty-shaded 1.17.1: https://github.com/grpc/grpc-java, Apache 2.0
grpc-protobuf 1.17.1: https://github.com/grpc/grpc-java, Apache 2.0
grpc-protobuf-lite 1.17.1: https://github.com/grpc/grpc-java, Apache 2.0
grpc-stub 1.17.1: https://github.com/grpc/grpc-java, Apache 2.0
grpc-grpclb 1.17.1: https://github.com/grpc/grpc-java, Apache 2.0
grpc-context 1.42.2: https://github.com/grpc/grpc-java, Apache 2.0
grpc-core 1.42.2: https://github.com/grpc/grpc-java, Apache 2.0
grpc-netty 1.42.2: https://github.com/grpc/grpc-java, Apache 2.0
grpc-netty-shaded 1.42.2: https://github.com/grpc/grpc-java, Apache 2.0
grpc-protobuf 1.42.2: https://github.com/grpc/grpc-java, Apache 2.0
grpc-protobuf-lite 1.42.2: https://github.com/grpc/grpc-java, Apache 2.0
grpc-stub 1.42.2: https://github.com/grpc/grpc-java, Apache 2.0
grpc-grpclb 1.42.2: https://github.com/grpc/grpc-java, Apache 2.0
gson 2.8.2: https://github.com/google/gson, Apache 2.0
httpasyncclient 4.1.3: https://github.com/apache/httpasyncclient, Apache 2.0
httpclient 4.5.13: https://github.com/apache/httpcomponents-client, Apache 2.0
Expand Down Expand Up @@ -368,8 +368,8 @@ The text of each license is also included at licenses/LICENSE-[project].txt.

hamcrest-core 1.3: https://github.com/hamcrest/JavaHamcrest, BSD
jsr305 3.0.2: https://code.google.com/archive/p/jsr-305, BSD
protobuf-java 3.5.1: https://github.com/protocolbuffers/protobuf, BSD
protobuf-java-util 3.5.1: https://github.com/protocolbuffers/protobuf, BSD
protobuf-java 3.21.5: https://github.com/protocolbuffers/protobuf, BSD
protobuf-java-util 3.21.5: https://github.com/protocolbuffers/protobuf, BSD

========================================================================
CDDL licenses
Expand Down

0 comments on commit ddeb9a4

Please sign in to comment.