Skip to content

Commit

Permalink
use netty-shaded for client
Browse files Browse the repository at this point in the history
- avoid conflict with pb-grpc-client-kotlin netty version
  • Loading branch information
celloman committed Apr 4, 2022
1 parent b1c484d commit 361ab06
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
8 changes: 2 additions & 6 deletions buildSrc/src/main/kotlin/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
object Versions {
const val BouncyCastle = "1.70"
const val Grpc = "1.39.0"
const val Grpc = "1.45.1"
const val GrpcSpringboot = "3.4.3"
const val GrpcNetty = "1.24.0"
const val Jackson = "2.12.5"
const val JacksonProtobuf = "0.9.12"
const val Kotlin = "1.6.10"
Expand Down Expand Up @@ -44,10 +43,7 @@ object Dependencies {
val GrpcProtobuf = DependencySpec("io.grpc:grpc-protobuf", Versions.Grpc, exclude = listOf("com.google.protobuf:protobuf-java", "com.google.protobuf:protobuf-java-util")).include()
val GrpcStub = DependencySpec("io.grpc:grpc-stub", Versions.Grpc).include()
val GrpcSpringbootStarter = DependencySpec("io.github.lognet:grpc-spring-boot-starter", Versions.GrpcSpringboot).include()
}

object Netty : DependencyCollector() {
val GrpcNetty = DependencySpec("io.grpc:grpc-netty", Versions.GrpcNetty).include()
val GrpcNetty = DependencySpec("io.grpc:grpc-netty-shaded", Versions.Grpc).include()
}

object Jackson : DependencyCollector() {
Expand Down
1 change: 0 additions & 1 deletion client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dependencies {
listOf(
*Dependencies.Grpc.all(),
*Dependencies.Protobuf.all(),
*Dependencies.Netty.all(),
*Dependencies.BouncyCastle.all(),
*Dependencies.Provenance.all(),
).forEach { it.implementation(this) }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.provenance.objectstore.gateway.client

import io.grpc.netty.NettyChannelBuilder
import io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder
import java.net.URI
import java.util.concurrent.ExecutorService
import java.util.concurrent.Executors
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.provenance.objectstore.gateway.client

import io.grpc.Deadline
import io.grpc.netty.NettyChannelBuilder
import io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder
import io.provenance.objectstore.gateway.GatewayGrpc
import io.provenance.objectstore.gateway.GatewayOuterClass
import io.provenance.scope.encryption.crypto.SignerImpl
Expand Down
1 change: 0 additions & 1 deletion example/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ dependencies {
it.implementation(this)
}
implementation("io.provenance.model:metadata-asset-model:0.1.2")
implementation("io.grpc:grpc-netty:1.24.0")
}

0 comments on commit 361ab06

Please sign in to comment.