diff --git a/README.adoc b/README.adoc index 7dfd65b..6404937 100644 --- a/README.adoc +++ b/README.adoc @@ -38,7 +38,7 @@ repositories { } dependencies { - compile 'io.github.lognet:grpc-spring-boot-starter:4.9.1' + compile 'io.github.lognet:grpc-spring-boot-starter:5.0.0' } @@ -48,7 +48,7 @@ By default, starter pulls `io.grpc:grpc-netty-shaded` as transitive dependency [source,groovy] ---- - compile ('io.github.lognet:grpc-spring-boot-starter:4.9.1') { + compile ('io.github.lognet:grpc-spring-boot-starter:5.0.0') { exclude group: 'io.grpc', module: 'grpc-netty-shaded' } compile 'io.grpc:grpc-netty:1.51.0' // <1> @@ -453,11 +453,14 @@ If you enable both `NettyServer` and `in-process` servers, the `configure` metho If you need to differentiate between the passed `serverBuilder` s, you can check the type. + This is the current limitation. +== Events +`GRpcServerInitializedEvent` is published upon server startup, you can consume it using regular spring API. + == Error handling The starter registers the `GRpcExceptionHandlerInterceptor` which is responsible to propagate the service-thrown exception to the error handlers. + The error handling method could be registered by having `@GRpcServiceAdvice` annotated bean with methods annotated with `@GRpcExceptionHandler` annotations. + -These are considered as `global` error handlers and the method with exception type parameter nearest by the type hierarchy to the thrown exception is invoked. + +These are considered as `global` error handlers and the method with exception type parameter the nearest by the type hierarchy to the thrown exception is invoked. + The signature of the error handler has to follow the below pattern: |=== diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 261886a..0dccbfe 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,5 +1,6 @@ | Starter Version | gRPC versions | Spring Boot version | |:------------------------|:-------------:|:-------------------:| +| [5.0.0](#version-500) | 1.51.0 | 3.0.0 | | [4.9.1](#version-491) | 1.51.0 | 2.7.6 | | [4.9.0](#version-490) | 1.50.0 | 2.7.4 | | [4.8.1](#version-481) | 1.49.0 | 2.7.3 | @@ -36,6 +37,14 @@ | [4.0.0](#version-400) | 1.32.1 | 2.3.3.RELEASE | | [3.5.7](#version-357) | 1.31.1 | 1.5.13.RELEASE | +# Version 5.0.0 +## :hammer: Dependency Upgrades + +- Upgrade spring cloud to 2022.0.0 [#331](https://github.com/LogNet/grpc-spring-boot-starter/issues/331) +- Upgrade JDK to 17 [#329](https://github.com/LogNet/grpc-spring-boot-starter/issues/329) +- Upgrade gradle to 7.4 [#328](https://github.com/LogNet/grpc-spring-boot-starter/issues/328) +- Upgrade spring Boot to 3.0 [#326](https://github.com/LogNet/grpc-spring-boot-starter/issues/326) + # Version 4.9.1 ## :star: New Features diff --git a/gradle.properties b/gradle.properties index 369d7a1..8adf73d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ gradleErrorPronePluginVersion=3.0.1 errorProneVersion=2.16 lombokVersion=1.18.24 -version=5.0.0-SNAPSHOT +version=5.0.0 group=io.github.lognet description=Spring Boot starter for Google RPC. gitHubUrl=https\://github.com/LogNet/grpc-spring-boot-starter diff --git a/grpc-spring-boot-starter-gradle-plugin/README.adoc b/grpc-spring-boot-starter-gradle-plugin/README.adoc index 14560e6..be59a0a 100644 --- a/grpc-spring-boot-starter-gradle-plugin/README.adoc +++ b/grpc-spring-boot-starter-gradle-plugin/README.adoc @@ -23,7 +23,7 @@ Bootstraps the project with `com.google.protobuf` gradle plugin (including `grp ---- plugins { id 'java' - id "io.github.lognet.grpc-spring-boot" version '4.9.1' + id "io.github.lognet.grpc-spring-boot" version '5.0.0' } ----