Skip to content

Commit 415c54a

Browse files
authored
Merge pull request #364 from yidongnan/update/spring227
Update to spring-boot v2.2.7, grpc v1.29.0 and more
2 parents 6e4237d + ab8f19e commit 415c54a

File tree

7 files changed

+21
-20
lines changed

7 files changed

+21
-20
lines changed

build.gradle

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@ buildscript {
1111
ext {
1212
projectVersion = '2.8.0-SNAPSHOT'
1313

14-
grpcVersion = '1.28.1'
14+
grpcVersion = '1.29.0'
1515
protobufVersion = '3.11.4'
1616
protobufGradlePluginVersion = '0.8.11'
1717

18-
springBootVersion = '2.2.6.RELEASE'
19-
springCloudVersion = 'Hoxton.SR3'
18+
springBootVersion = '2.2.7.RELEASE'
19+
springCloudVersion = 'Hoxton.SR4'
2020
springDependencyManagementVersion = '1.0.9.RELEASE'
21-
springCloudAlibabaNacosVersion = '2.2.0.RELEASE'
22-
braveInstrumentationGrpc = '5.10.2'
23-
springSecurityOAuthVersion = '2.4.0.RELEASE'
21+
springCloudAlibabaNacosVersion = '2.2.1.RELEASE'
22+
springSecurityOAuthVersion = '2.4.1.RELEASE'
2423

2524
lombokPluginVersion = '3.2.0'
2625
versioningPluginVersion = '2.10.0'
@@ -34,13 +33,13 @@ plugins {
3433
id 'java'
3534
id 'java-library'
3635
// future improvement would be to use the version declared above in the ext block instead of repeating it here
37-
id 'org.springframework.boot' version '2.2.6.RELEASE' apply false
36+
id 'org.springframework.boot' version '2.2.7.RELEASE' apply false
3837
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
39-
id 'net.nemerosa.versioning' version '2.12.1'
38+
id 'net.nemerosa.versioning' version '2.13.1'
4039
id 'com.google.protobuf' version '0.8.12'
41-
id 'io.franzbecker.gradle-lombok' version '3.3.0' apply false
40+
id 'io.franzbecker.gradle-lombok' version '4.0.0' apply false
4241
id 'com.github.ben-manes.versions' version '0.28.0' // gradle dependencyUpdates (Takes quite some time)
43-
id 'com.diffplug.gradle.spotless' version '3.28.0'
42+
id 'com.diffplug.gradle.spotless' version '4.0.1'
4443
}
4544

4645
// If you attempt to build without the `--scan` parameter in `gradle 6.0+` it will cause a build error that it can't find
@@ -150,10 +149,10 @@ allprojects { project ->
150149
buildscript {
151150
dependencyManagement {
152151
imports {
153-
mavenBom "io.grpc:grpc-bom:${grpcVersion}"
154-
mavenBom "com.google.protobuf:protobuf-bom:${protobufVersion}"
155152
mavenBom "org.springframework.boot:spring-boot-starter-parent:${springBootVersion}"
156153
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
154+
mavenBom "com.google.protobuf:protobuf-bom:${protobufVersion}"
155+
mavenBom "io.grpc:grpc-bom:${grpcVersion}"
157156
}
158157
}
159158

docs/en/versions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ Current version.
4747

4848
| Version | spring-boot | gRPC | Date |
4949
|:-------:|:-----------:|:----:| ---: |
50-
| 2.8.0* | 2.2.6 | 1.28.1 | TBA |
50+
| 2.10.0* | 2.3.0 | 1.29.0 | TBA |
51+
| 2.9.0* | 2.3.0 | 1.29.0 | Jun, 2020 |
52+
| 2.8.0* | 2.2.7 | 1.29.0 | Jun, 2020 |
5153
| 2.7.0 | 2.2.4 | 1.27.1 | Feb, 2020 |
5254
| 2.6.2 | 2.2.1 | 1.25.0 | Jan, 2020 |
5355
| 2.6.1 | 2.2.1 | 1.25.0 | NOV, 2019 |

examples/cloud-grpc-client/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies {
77
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
88
implementation 'org.springframework.boot:spring-boot-starter-actuator'
99
implementation 'org.springframework.cloud:spring-cloud-starter-zipkin'
10-
implementation "io.zipkin.brave:brave-instrumentation-grpc:${braveInstrumentationGrpc}"
10+
implementation 'io.zipkin.brave:brave-instrumentation-grpc'
1111
implementation project(':grpc-client-spring-boot-starter') // replace to implementation("net.devh:grpc-client-spring-boot-starter:${springBootGrpcVersion}")
1212
implementation project(':examples:grpc-lib')
1313
}

examples/cloud-grpc-server/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies {
77
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
88
implementation 'org.springframework.boot:spring-boot-starter-actuator'
99
implementation 'org.springframework.cloud:spring-cloud-starter-zipkin'
10-
implementation "io.zipkin.brave:brave-instrumentation-grpc:${braveInstrumentationGrpc}"
10+
implementation 'io.zipkin.brave:brave-instrumentation-grpc'
1111
implementation project(':grpc-server-spring-boot-starter') // replace to implementation "net.devh:grpc-server-spring-boot-starter:${springBootGrpcVersion}"
1212
implementation project(':examples:grpc-lib')
1313
}

grpc-client-spring-boot-autoconfigure/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies {
1919
optionalSupportImplementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
2020
optionalSupportImplementation 'org.springframework.cloud:spring-cloud-starter-consul-discovery'
2121
optionalSupportImplementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
22-
optionalSupportImplementation "io.zipkin.brave:brave-instrumentation-grpc:${braveInstrumentationGrpc}"
22+
optionalSupportImplementation 'io.zipkin.brave:brave-instrumentation-grpc'
2323
optionalSupportImplementation 'javax.inject:javax.inject:1'
2424
// api comes from java-library, and allows exposure of the dependency to consumers of the library
2525
// this means it can be used implicitly without specifying the dependency (unless you wish to override with a different version, or exclude)

grpc-common-spring-boot/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ dependencies {
1717
api('io.grpc:grpc-core')
1818

1919
optionalSupportImplementation('org.springframework.cloud:spring-cloud-starter-sleuth')
20-
optionalSupportImplementation("io.zipkin.brave:brave-instrumentation-grpc:${braveInstrumentationGrpc}")
20+
optionalSupportImplementation('io.zipkin.brave:brave-instrumentation-grpc')
2121
}

grpc-server-spring-boot-autoconfigure/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ dependencies {
2020
optionalSupportImplementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
2121
optionalSupportImplementation 'org.springframework.cloud:spring-cloud-starter-consul-discovery'
2222
optionalSupportImplementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
23-
optionalSupportImplementation "com.alibaba.cloud:spring-cloud-alibaba-nacos-discovery:${springCloudAlibabaNacosVersion}"
24-
optionalSupportImplementation 'com.google.inject:guice:4.2.2' // Only needed to avoid some warnings during compilation (for eureka)
25-
optionalSupportImplementation "io.zipkin.brave:brave-instrumentation-grpc:${braveInstrumentationGrpc}"
23+
optionalSupportImplementation "com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-discovery:${springCloudAlibabaNacosVersion}"
24+
optionalSupportImplementation 'com.google.inject:guice:4.2.3' // Only needed to avoid some warnings during compilation (for eureka)
25+
optionalSupportImplementation 'io.zipkin.brave:brave-instrumentation-grpc'
2626
optionalSupportApi 'io.grpc:grpc-netty'
2727
api 'io.grpc:grpc-netty-shaded'
2828
api 'io.grpc:grpc-protobuf'

0 commit comments

Comments
 (0)