Skip to content

Commit d6ff3cb

Browse files
authored
Merge pull request #46 from yidongnan/1.2.0
RELEASE 1.2.0
2 parents 9ec5932 + 4dfe97d commit d6ff3cb

File tree

28 files changed

+214
-80
lines changed

28 files changed

+214
-80
lines changed

README-zh.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ Java技术交流群:294712648 <a target="_blank" href="http://shang.qq.com/wpa
2828
<dependency>
2929
<groupId>net.devh</groupId>
3030
<artifactId>grpc-server-spring-boot-starter</artifactId>
31-
<version>1.1.1.RELEASE</version>
31+
<version>1.2.0.RELEASE</version>
3232
</dependency>
3333
````
3434

3535
添加依赖如果使用的是Gradle
3636

3737
````
3838
dependencies {
39-
compile 'net.devh:grpc-server-spring-boot-starter:1.1.1.RELEASE'
39+
compile 'net.devh:grpc-server-spring-boot-starter:1.2.0.RELEASE'
4040
}
4141
````
4242

@@ -70,15 +70,15 @@ grpc.server.host=
7070
<dependency>
7171
<groupId>net.devh</groupId>
7272
<artifactId>grpc-client-spring-boot-starter</artifactId>
73-
<version>1.1.1.RELEASE</version>
73+
<version>1.2.0.RELEASE</version>
7474
</dependency>
7575
````
7676

7777
添加依赖如果使用的是Gradle
7878

7979
````
8080
dependencies {
81-
compile 'net.devh:grpc-client-spring-boot-starter:1.1.1.RELEASE'
81+
compile 'net.devh:grpc-client-spring-boot-starter:1.2.0.RELEASE'
8282
}
8383
````
8484

@@ -109,6 +109,7 @@ grpc.client.(gRPC server name).port[0]=
109109
110110
| Project Version | gRPC-java Version |
111111
| ---------------- | ------------------ |
112+
| 1.2.0.RELEASE | 1.3.0 |
112113
| 1.1.1.RELEASE | 1.2.0 |
113114
| 1.0.1.RELEASE | 1.1.2 |
114115
| 1.0.0.RELEASE | 1.0.3 |

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ To add a dependency using Maven, use the following:
2828
<dependency>
2929
<groupId>net.devh</groupId>
3030
<artifactId>grpc-server-spring-boot-starter</artifactId>
31-
<version>1.1.1.RELEASE</version>
31+
<version>1.2.0.RELEASE</version>
3232
</dependency>
3333
````
3434

3535
To add a dependency using Gradle:
3636

3737
````
3838
dependencies {
39-
compile 'net.devh:grpc-server-spring-boot-starter:1.1.1.RELEASE'
39+
compile 'net.devh:grpc-server-spring-boot-starter:1.2.0.RELEASE'
4040
}
4141
````
4242

@@ -61,15 +61,15 @@ To add a dependency using Maven, use the following:
6161
<dependency>
6262
<groupId>net.devh</groupId>
6363
<artifactId>grpc-client-spring-boot-starter</artifactId>
64-
<version>1.1.1.RELEASE</version>
64+
<version>1.2.0.RELEASE</version>
6565
</dependency>
6666
````
6767

6868
To add a dependency using Gradle:
6969

7070
````
7171
dependencies {
72-
compile 'net.devh:grpc-client-spring-boot-starter:1.1.1.RELEASE'
72+
compile 'net.devh:grpc-client-spring-boot-starter:1.2.0.RELEASE'
7373
}
7474
````
7575

@@ -107,6 +107,7 @@ grpc.client.(gRPC server name).port[0]=
107107
108108
| Project Version | gRPC-java Version |
109109
| ---------------- | ------------------ |
110+
| 1.2.0.RELEASE | 1.3.0 |
110111
| 1.1.1.RELEASE | 1.2.0 |
111112
| 1.0.1.RELEASE | 1.1.2 |
112113
| 1.0.0.RELEASE | 1.0.3 |

build.gradle

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,21 @@ buildscript {
77
maven { url "https://plugins.gradle.org/m2/" }
88
}
99
ext {
10-
projectVersion = '1.1.1.RELEASE'
10+
projectVersion = '1.2.0.RELEASE'
1111

12-
grpcVersion = '1.2.0'
12+
grpcVersion = '1.3.0'
1313
protobufVersion = '3.2.0'
1414
protobufGradlePluginVersion = '0.8.0'
1515

16-
springBootVersion = '1.4.5.RELEASE'
17-
springSleuthVersion = '1.1.3.RELEASE'
18-
springCloudVersion = 'Camden.SR6'
19-
springCloudConsulVersion = '1.1.3.RELEASE'
20-
springCloudEurekaVersion = '1.2.6.RELEASE'
16+
springBootVersion = '1.5.2.RELEASE'
17+
springSleuthVersion = '1.2.0.RELEASE'
18+
springCloudVersion = 'Dalston.RELEASE'
19+
springCloudConsulVersion = '1.2.0.RELEASE'
20+
springCloudEurekaVersion = '1.3.0.RELEASE'
2121
}
2222
dependencies {
2323
classpath "io.spring.gradle:dependency-management-plugin:0.6.1.RELEASE"
24+
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
2425
}
2526
}
2627

@@ -34,8 +35,8 @@ allprojects {
3435
apply plugin: "io.spring.dependency-management"
3536

3637
compileJava {
37-
sourceCompatibility = JavaVersion.VERSION_1_7
38-
targetCompatibility = JavaVersion.VERSION_1_7
38+
sourceCompatibility = JavaVersion.VERSION_1_6
39+
targetCompatibility = JavaVersion.VERSION_1_6
3940
options.encoding = 'UTF-8'
4041
}
4142

examples/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,20 @@ visit http://localhost:8080/ can see result.
2323
./gradlew :example:cloud-eureka-server:bootRun
2424
````
2525
26-
2. In a different terminal window run:
26+
2. Try the cloud-zipkin-server example first run:
2727
2828
````
29-
./gradlew :example:cloud-grpc-server:bootRun
29+
./gradlew :example:cloud-zipkin-server:bootRun
3030
````
3131
3232
3. In a different terminal window run:
3333
34+
````
35+
./gradlew :example:cloud-grpc-server:bootRun
36+
````
37+
38+
4. In a different terminal window run:
39+
3440
````
3541
./gradlew :example:cloud-grpc-client:bootRun
3642
````

examples/cloud-grpc-client/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apply plugin: 'org.springframework.boot'
33
dependencies {
44
compile('org.springframework.cloud:spring-cloud-starter-eureka')
55
compile('org.springframework.boot:spring-boot-starter-actuator')
6+
compile('org.springframework.cloud:spring-cloud-starter-zipkin')
67
compile project(':grpc-client-spring-boot-starter') // replace to compile("net.devh:grpc-client-spring-boot-starter:${springBootGrpcVersion}")
78
compile project(':examples:grpc-lib')
89
}

examples/cloud-grpc-client/src/main/resources/application.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ server:
33
spring:
44
application:
55
name: cloud-grpc-client
6+
sleuth:
7+
sampler:
8+
percentage: 1
69
eureka:
710
client:
811
register-with-eureka: true

examples/cloud-grpc-server/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apply plugin: 'org.springframework.boot'
33
dependencies {
44
compile('org.springframework.cloud:spring-cloud-starter-eureka')
55
compile('org.springframework.boot:spring-boot-starter-actuator')
6+
compile('org.springframework.cloud:spring-cloud-starter-zipkin')
67
compile project(':grpc-server-spring-boot-starter') // replace to compile("net.devh:grpc-server-spring-boot-starter:${springBootGrpcVersion}")
78
compile project(':examples:grpc-lib')
89
}

examples/cloud-grpc-server/src/main/resources/application.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
spring:
22
application:
33
name: cloud-grpc-server
4+
sleuth:
5+
sampler:
6+
percentage: 1
47
server:
58
port: 0
69
grpc:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apply plugin: 'org.springframework.boot'
2+
3+
dependencies {
4+
compile('org.springframework.boot:spring-boot-starter')
5+
compile('io.zipkin.java:zipkin-server')
6+
compile('io.zipkin.java:zipkin-autoconfigure-ui')
7+
}
8+
9+
buildscript {
10+
dependencies {
11+
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
12+
}
13+
dependencyManagement {
14+
imports {
15+
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
16+
}
17+
}
18+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package net.devh.examples.zipkin;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
import zipkin.server.EnableZipkinServer;
7+
8+
/**
9+
* User: Michael
10+
11+
* Date: 17-5-14
12+
*/
13+
@SpringBootApplication
14+
@EnableZipkinServer
15+
public class ZipkinApplication {
16+
17+
public static void main(String[] args) {
18+
SpringApplication.run(ZipkinApplication.class, args);
19+
}
20+
}

0 commit comments

Comments
 (0)