Skip to content

Commit df10bab

Browse files
author
Alexander Furer
committed
release version=3.3.0
1 parent e8aa046 commit df10bab

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

README.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repositories {
2626
2727
}
2828
dependencies {
29-
compile 'io.github.lognet:grpc-spring-boot-starter:3.2.2'
29+
compile 'io.github.lognet:grpc-spring-boot-starter:3.3.0'
3030
}
3131
3232
@@ -217,6 +217,12 @@ If you enable both `NettyServer` and `in-process` servers, the `configure` metho
217217
If you need to differentiate between the passed `serverBuilder` s, you can check the type. +
218218
This is the current limitation.
219219

220+
== Consul Integration
221+
222+
Starting from version `3.3.0`, the starter will auto-register the running grpc server in Consul registry if `org.springframework.cloud:spring-cloud-starter-consul-discovery` is in classpath. +
223+
The registered service name will be prefixed with `grpc-` ,i.e. `grpc-${spring.application.name}` to not interfere with standard registered web-service name if you choose to run both embedded `Grpc` and `Web` servers. +
224+
225+
220226
== Eureka Integration
221227

222228
When building production-ready services, the advise is to have separate project for your service(s) gRPC API that holds only proto-generated classes both for server and client side usage. +

ReleaseNotes.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
== Version 3.2.3
2+
* gRPC version upgraded to 1.21.0
3+
* Consul auto-registration support
4+
15
== Version 3.2.2
26
* gRPC version upgraded to 1.20.0
37

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=3.2.3-SNAPSHOT
1+
version=3.3.0
22
group=io.github.lognet
33
description=Spring Boot starter for Google RPC.
44
gitHubUrl=https\://github.com/LogNet/grpc-spring-boot-starter

grpc-spring-boot-starter/src/main/java/org/lognet/springboot/grpc/autoconfigure/consul/GrpcConsulRegistrar.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ private ConsulRegistration getRegistration(GRpcServerInitializedEvent event) {
3737
if (!properties.isPreferAgentAddress()) {
3838
grpcService.setAddress(properties.getHostname());
3939
}
40-
String appName = "grpc_" + ConsulAutoRegistration.getAppName(properties, applicationContext.getEnvironment());
40+
String appName = "grpc-" + ConsulAutoRegistration.getAppName(properties, applicationContext.getEnvironment());
4141
grpcService.setName(ConsulAutoRegistration.normalizeForDns(appName));
42-
grpcService.setId("grpc_" + ConsulAutoRegistration.getInstanceId(properties, applicationContext));
42+
grpcService.setId("grpc-" + ConsulAutoRegistration.getInstanceId(properties, applicationContext));
4343

4444
/*
4545
service.setTags(createTags(properties));

grpc-spring-boot2-starter-demo/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies {
2525

2626
testCompile project(':grpc-spring-boot-starter-demo')
2727

28-
//testCompile project(':grpc-spring-boot-starter-demo').sourceSets.test.output
28+
testCompile project(':grpc-spring-boot-starter-demo').sourceSets.test.output
2929

3030

3131
testCompile('org.springframework.boot:spring-boot-starter-test')

0 commit comments

Comments
 (0)