Skip to content

Commit c4b6ebb

Browse files
author
Alexander Furer
committed
v 2.3.0 release
1 parent 11a05b1 commit c4b6ebb

File tree

8 files changed

+21
-10
lines changed

8 files changed

+21
-10
lines changed

README.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repositories {
1919
2020
}
2121
dependencies {
22-
compile('org.lognet:grpc-spring-boot-starter:2.2.0')
22+
compile('org.lognet:grpc-spring-boot-starter:2.3.0')
2323
}
2424
----
2525
@@ -56,7 +56,8 @@ If you enable both the `NettyServer` and `in-process` server, they will both sha
5656
5757
== Show case
5858
59-
In the 'grpc-spring-boot-starter-demo' project you can find fully functional example with integration test.
59+
In the 'grpc-spring-boot-starter-demo' project you can find fully functional examples with integration tests. +
60+
The 'grpc-spring-boot2-starter-demo' project runs the same demo services and tests with *spring boot 2*.
6061
6162
=== Service implementation
6263
The service definition from `.proto` file looks like this :
@@ -314,7 +315,7 @@ public class GreeterServiceConsumer {
314315
public void greet(String name) {
315316
final InstanceInfo instanceInfo = client.getNextServerFromEureka("my-service-name", false);<1>
316317
final ManagedChannel channel = ManagedChannelBuilder.forAddress(instanceInfo.getIPAddr(), instanceInfo.getPort())
317-
.usePlaintext(true)
318+
.usePlaintext()
318319
.build(); <2>
319320
final GreeterServiceGrpc.GreeterServiceFutureStub stub = GreeterServiceGrpc.newFutureStub(channel); <3>
320321
stub.greet(name); <4>

ReleaseNotes.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
== Version 2.3.0
2+
* gRPC version upgraded to 1.11.0
3+
* Fixed #80
4+
* Added Spring boot 2.X demo project
5+
* Spring boot upgraded to 1.5.11
6+
* Tested with
7+
** springBoot_1_X_Version = '1.5.11.RELEASE'
8+
** springBoot_2_X_Version = '2.0.1.RELEASE'
9+
10+
111
== Version 2.2.0
212
- gRPC version upgraded to 1.10.0
313
- Gradle 4.6

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ buildscript {
33
ext {
44
springBoot_1_X_Version = '1.5.11.RELEASE'
55
springBoot_2_X_Version = '2.0.1.RELEASE'
6-
grpcVersion = '1.10.0'
6+
grpcVersion = '1.11.0'
77
}
88
repositories {
99
mavenCentral()

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=2.2.1-SNAPSHOT
1+
version=2.3.0
22
#group=io.github.lognet
33
group=org.lognet
44
description=Spring Boot starter for Google RPC.

grpc-spring-boot-starter-demo/src/main/protoGen/io/grpc/examples/CalculatorGrpc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
*/
2020
@javax.annotation.Generated(
21-
value = "by gRPC proto compiler (version 1.10.0)",
21+
value = "by gRPC proto compiler (version 1.11.0)",
2222
comments = "Source: calculator.proto")
2323
public final class CalculatorGrpc {
2424

grpc-spring-boot-starter-demo/src/main/protoGen/io/grpc/examples/GreeterGrpc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* </pre>
2222
*/
2323
@javax.annotation.Generated(
24-
value = "by gRPC proto compiler (version 1.10.0)",
24+
value = "by gRPC proto compiler (version 1.11.0)",
2525
comments = "Source: greeter.proto")
2626
public final class GreeterGrpc {
2727

grpc-spring-boot-starter-demo/src/test/java/org/lognet/springboot/grpc/GRpcServerBuilderConfigurerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class GRpcServerBuilderConfigurerTest {
4040
@Before
4141
public void setup() {
4242
channel = ManagedChannelBuilder.forAddress("localhost", 7777)
43-
.usePlaintext(true)
43+
.usePlaintext()
4444
.build();
4545
}
4646

grpc-spring-boot-starter-demo/src/test/java/org/lognet/springboot/grpc/GrpcServerTestBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ public abstract class GrpcServerTestBase {
4444
public final void setupChannels() {
4545
if(gRpcServerProperties.isEnabled()) {
4646
channel = onChannelBuild(ManagedChannelBuilder.forAddress("localhost",getPort() )
47-
.usePlaintext(true)
47+
.usePlaintext()
4848
).build();
4949
}
5050
if(StringUtils.hasText(gRpcServerProperties.getInProcessServerName())){
5151
inProcChannel = onChannelBuild(
5252
InProcessChannelBuilder.forName(gRpcServerProperties.getInProcessServerName())
53-
.usePlaintext(true)
53+
.usePlaintext()
5454
).build();
5555

5656
}

0 commit comments

Comments
 (0)