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:
Chris Bono
2025-01-21 16:26:44 -06:00
parent 06adbaa26d
commit 98d744fd6b
5 changed files with 24 additions and 6 deletions

View File

@@ -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'