Skip to content

Commit 0d603e5

Browse files
committed
release 4.8.0
1 parent d0268d7 commit 0d603e5

File tree

4 files changed

+29
-8
lines changed

4 files changed

+29
-8
lines changed

README.adoc

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ repositories {
3838
3939
}
4040
dependencies {
41-
compile 'io.github.lognet:grpc-spring-boot-starter:4.7.0'
41+
compile 'io.github.lognet:grpc-spring-boot-starter:4.8.0'
4242
}
4343
4444
@@ -48,10 +48,10 @@ By default, starter pulls `io.grpc:grpc-netty-shaded` as transitive dependency
4848

4949
[source,groovy]
5050
----
51-
compile ('io.github.lognet:grpc-spring-boot-starter:4.7.0') {
51+
compile ('io.github.lognet:grpc-spring-boot-starter:4.8.0') {
5252
exclude group: 'io.grpc', module: 'grpc-netty-shaded'
5353
}
54-
compile 'io.grpc:grpc-netty:1.43.2' // <1>
54+
compile 'io.grpc:grpc-netty:1.47.0' // <1>
5555
----
5656
<1> Make sure to pull the version that matches the release.
5757

@@ -65,7 +65,7 @@ In this case you'll need to forcibly and explicitly set the `grpc` version to
6565
configurations.all {
6666
resolutionStrategy.eachDependency { details ->
6767
if ("io.grpc".equalsIgnoreCase(details.requested.group)) {
68-
details.useVersion "1.45.1"
68+
details.useVersion "1.47.0"
6969
}
7070
}
7171
}
@@ -409,6 +409,7 @@ If the more detailed tuning is needed for security setup, please use custom conf
409409
=== Custom gRPC Server Configuration
410410

411411
To intercept the `io.grpc.ServerBuilder` instance used to build the `io.grpc.Server`, you can add bean that inherits from `org.lognet.springboot.grpc.GRpcServerBuilderConfigurer` to your context and override the `configure` method. +
412+
Multiple configurers are also supported. +
412413
By the time of invocation of `configure` method, all discovered services, including theirs interceptors, had been added to the passed builder. +
413414
In your implementation of `configure` method, you can add your custom configuration:
414415

@@ -420,8 +421,6 @@ public class MyGRpcServerBuilderConfigurer extends GRpcServerBuilderConfigurer{
420421
public void configure(ServerBuilder<?> serverBuilder){
421422
serverBuilder
422423
.executor(YOUR EXECUTOR INSTANCE)
423-
.compressorRegistry(YOUR COMPRESSION REGISTRY)
424-
.decompressorRegistry(YOUR DECOMPRESSION REGISTRY)
425424
.useTransportSecurity(YOUR TRANSPORT SECURITY SETTINGS);
426425
((NettyServerBuilder)serverBuilder)// cast to NettyServerBuilder (which is the default server) for further customization
427426
.sslContext(GrpcSslContexts // security fine tuning
@@ -434,6 +433,17 @@ public class MyGRpcServerBuilderConfigurer extends GRpcServerBuilderConfigurer{
434433
}
435434
};
436435
}
436+
@Component
437+
public class MyCustomCompressionGRpcServerBuilderConfigurer extends GRpcServerBuilderConfigurer{
438+
@Override
439+
public void configure(ServerBuilder<?> serverBuilder){
440+
serverBuilder
441+
.compressorRegistry(YOUR COMPRESSION REGISTRY)
442+
.decompressorRegistry(YOUR DECOMPRESSION REGISTRY) ;
443+
444+
}
445+
};
446+
}
437447
----
438448

439449
[NOTE]

ReleaseNotes.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
| Starter Version | gRPC versions | Spring Boot version
22
|-------------------------|:-------------:|:-------------------:|
3+
| [4.8.0](#version-480) | 1.47.0 | 2.7.1 |
34
| [4.7.1](#version-471) | 1.47.0 | 2.6.8 |
45
| [4.7.0](#version-470) | 1.45.1 | 2.6.6 |
56
| [4.6.0](#version-460) | 1.43.2 | 2.6.2 |
@@ -32,6 +33,16 @@
3233
| [4.0.0](#version-400) | 1.32.1 | 2.3.3.RELEASE |
3334
| [3.5.7](#version-357) | 1.31.1 | 1.5.13.RELEASE |
3435

36+
# Version 4.8.0
37+
## :star: New Features
38+
39+
- Support multiple GRpcServerBuilderConfigurer beans [#284](https://github.com/LogNet/grpc-spring-boot-starter/issues/284)
40+
41+
## :hammer: Dependency Upgrades
42+
43+
- Spring boot 2.7.x suppport [#299](https://github.com/LogNet/grpc-spring-boot-starter/issues/299)
44+
45+
3546
# Version 4.7.1
3647
## :star: New Features
3748

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ gradleErrorPronePluginVersion=2.0.2
55
errorProneVersion=2.7.1
66
lombokVersion=1.18.20
77

8-
version=4.8.0-SNAPSHOT
8+
version=4.8.0
99
group=io.github.lognet
1010
description=Spring Boot starter for Google RPC.
1111
gitHubUrl=https\://github.com/LogNet/grpc-spring-boot-starter

grpc-spring-boot-starter-gradle-plugin/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Bootstraps the project with `com.google.protobuf` gradle plugin (including `grp
2323
----
2424
plugins {
2525
id 'java'
26-
id "io.github.lognet.grpc-spring-boot" version '4.7.0'
26+
id "io.github.lognet.grpc-spring-boot" version '4.8.0'
2727
}
2828
2929
----

0 commit comments

Comments
 (0)