Skip to content

Commit

Permalink
release 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jvmlet committed Jan 1, 2023
1 parent 9721fa7 commit fdcb2e2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
9 changes: 6 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand All @@ -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>
Expand Down Expand Up @@ -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:

|===
Expand Down
9 changes: 9 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -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 |
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion grpc-spring-boot-starter-gradle-plugin/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
----
Expand Down

0 comments on commit fdcb2e2

Please sign in to comment.