Skip to content

Commit 1ae669f

Browse files
authored
Merge pull request #371 from yidongnan/update/spring-v231
Update dependencies
2 parents 40c7440 + 9fc4e2e commit 1ae669f

File tree

8 files changed

+24
-15
lines changed

8 files changed

+24
-15
lines changed

build.gradle

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,36 +9,40 @@ buildscript {
99
}
1010
}
1111
ext {
12-
projectVersion = '2.8.0.RELEASE'
12+
projectVersion = '2.9.0-SNAPSHOT'
1313

14-
grpcVersion = '1.29.0'
15-
protobufVersion = '3.11.4'
14+
// https://github.com/grpc/grpc-java/releases
15+
grpcVersion = '1.30.0'
16+
// https://github.com/protocolbuffers/protobuf/releases
17+
protobufVersion = '3.12.2'
1618
protobufGradlePluginVersion = '0.8.11'
1719

18-
springBootVersion = '2.2.7.RELEASE'
19-
springCloudVersion = 'Hoxton.SR4'
20+
// https://github.com/spring-projects/spring-boot/releases
21+
springBootVersion = '2.3.1.RELEASE'
22+
// https://github.com/spring-cloud/spring-cloud-release/releases
23+
springCloudVersion = 'Hoxton.SR5'
24+
// https://github.com/alibaba/spring-cloud-alibaba/releases
2025
springCloudAlibabaNacosVersion = '2.2.1.RELEASE'
21-
springSecurityOAuthVersion = '2.4.1.RELEASE'
26+
// https://github.com/spring-projects/spring-security-oauth/releases/tag/2.5.0.RELEASE
27+
springSecurityOAuthVersion = '2.5.0.RELEASE'
2228

2329
lombokPluginVersion = '3.2.0'
2430
versioningPluginVersion = '2.10.0'
2531
versionsPluginVersion = '0.27.0'
26-
27-
nimbusJoseJwtVersion = '8.11'
2832
}
2933
}
3034

3135
plugins {
3236
id 'java'
3337
id 'java-library'
3438
// future improvement would be to use the version declared above in the ext block instead of repeating it here
35-
id 'org.springframework.boot' version '2.2.7.RELEASE' apply false
39+
id 'org.springframework.boot' version '2.3.1.RELEASE' apply false
3640
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
3741
id 'net.nemerosa.versioning' version '2.13.1'
3842
id 'com.google.protobuf' version '0.8.12'
3943
id 'io.franzbecker.gradle-lombok' version '4.0.0' apply false
4044
id 'com.github.ben-manes.versions' version '0.28.0' // gradle dependencyUpdates (Takes quite some time)
41-
id 'com.diffplug.gradle.spotless' version '4.0.1'
45+
id 'com.diffplug.gradle.spotless' version '4.3.0'
4246
}
4347

4448
// If you attempt to build without the `--scan` parameter in `gradle 6.0+` it will cause a build error that it can't find
@@ -52,7 +56,9 @@ if (hasProperty('buildScan')) {
5256

5357
// you may use IntelliJ's project configuration to make it use the gradle version defined in the gradle script's wrapper section
5458
wrapper {
55-
gradleVersion = '6.2.1'
59+
// Update using:
60+
// ./gradlew wrapper --gradle-version=6.5 --distribution-type=bin
61+
gradleVersion = '6.5'
5662
}
5763

5864
def buildTimeAndDate = OffsetDateTime.now()

docs/en/versions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ Current version.
4747

4848
| Version | spring-boot | gRPC | Date |
4949
|:-------:|:-----------:|:----:| ---: |
50-
| 2.10.0* | 2.3.0 | 1.29.0 | TBA |
51-
| 2.9.0* | 2.3.0 | 1.29.0 | Jun, 2020 |
50+
| 2.10.0* | 2.3.1 | 1.30.0 | TBA |
51+
| 2.9.0* | 2.3.1 | 1.30.0 | Jun, 2020 |
5252
| 2.8.0 | 2.2.7 | 1.29.0 | Jun, 2020 |
5353
| 2.7.0 | 2.2.4 | 1.27.1 | Feb, 2020 |
5454
| 2.6.2 | 2.2.1 | 1.25.0 | Jan, 2020 |

examples/security-grpc-bearerAuth-server/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dependencies {
88
implementation 'org.springframework.security:spring-security-oauth2-client'
99
implementation project(':grpc-server-spring-boot-starter') // replace to implementation("net.devh:grpc-server-spring-boot-starter:${springBootGrpcVersion}")
1010
implementation project(':examples:grpc-lib')
11-
implementation 'com.nimbusds:nimbus-jose-jwt:${nimbusJoseJwtVersion}'
1211
implementation "org.springframework.security.oauth:spring-security-oauth2:${springSecurityOAuthVersion}"
1312
implementation 'org.springframework.security:spring-security-web'
1413
implementation 'org.springframework.security:spring-security-oauth2-resource-server'

gradle/wrapper/gradle-wrapper.jar

215 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ esac
8282

8383
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
8484

85+
8586
# Determine the Java command to use to start the JVM.
8687
if [ -n "$JAVA_HOME" ] ; then
8788
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
@@ -129,6 +130,7 @@ fi
129130
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
130131
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
131132
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133+
132134
JAVACMD=`cygpath --unix "$JAVACMD"`
133135

134136
# We build the pattern for arguments to be converted via cygpath

gradlew.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ set CMD_LINE_ARGS=%*
8484

8585
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
8686

87+
8788
@rem Execute Gradle
8889
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
8990

grpc-common-spring-boot/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies {
1515
api('org.springframework.boot:spring-boot-starter')
1616
optionalSupportImplementation('org.springframework.boot:spring-boot-starter-actuator')
1717
api('io.grpc:grpc-core')
18+
optionalSupportImplementation('com.google.guava:guava')
1819

1920
optionalSupportImplementation('org.springframework.cloud:spring-cloud-starter-sleuth')
2021
optionalSupportImplementation('io.zipkin.brave:brave-instrumentation-grpc')

0 commit comments

Comments
 (0)