Remove opinion on Netty from core module
Currently the spring-grpc-core imposes an opinion on Netty. The core module should not have an opinion, but rather the starter enforces the opinion. Also, makes spring-grpc-core optional in the autconfigure module as the autoconfigure will eventually be moved into Spring Boot and at that time everything is optional. Signed-off-by: Chris Bono <chris.bono@gmail.com>
This commit is contained in:
@@ -29,14 +29,11 @@ dependencyManagement {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.grpc:spring-grpc-spring-boot-starter'
|
||||
implementation ('org.springframework.grpc:spring-grpc-spring-boot-starter') {
|
||||
exclude group: "io.grpc", module: "grpc-netty"
|
||||
}
|
||||
implementation 'io.grpc:grpc-netty-shaded'
|
||||
implementation 'io.grpc:grpc-services'
|
||||
modules {
|
||||
module("io.grpc:grpc-netty") {
|
||||
replacedBy("io.grpc:grpc-netty-shaded", "Use Netty shaded instead of regular Netty")
|
||||
}
|
||||
}
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
testImplementation 'org.springframework.grpc:spring-grpc-test'
|
||||
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
||||
|
||||
Reference in New Issue
Block a user