Skip to content

Commit e8aa046

Browse files
author
Alexander Furer
committed
grpcVersion = '1.21.0' + test fixes
1 parent f80179a commit e8aa046

File tree

7 files changed

+15
-12
lines changed

7 files changed

+15
-12
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ buildscript {
22
ext {
33
springBoot_1_X_Version = '1.5.13.RELEASE'
44
springBoot_2_X_Version = '2.1.3.RELEASE'
5-
grpcVersion = '1.20.0'
5+
grpcVersion = '1.21.0'
66
}
77
repositories {
88
mavenCentral()

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
@@ -10,7 +10,7 @@
1010
/**
1111
*/
1212
@javax.annotation.Generated(
13-
value = "by gRPC proto compiler (version 1.20.0)",
13+
value = "by gRPC proto compiler (version 1.21.0)",
1414
comments = "Source: calculator.proto")
1515
public final class CalculatorGrpc {
1616

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
@@ -13,7 +13,7 @@
1313
* </pre>
1414
*/
1515
@javax.annotation.Generated(
16-
value = "by gRPC proto compiler (version 1.20.0)",
16+
value = "by gRPC proto compiler (version 1.21.0)",
1717
comments = "Source: greeter.proto")
1818
public final class GreeterGrpc {
1919

grpc-spring-boot-starter/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ dependencies {
9797

9898
compileOnly("org.springframework.boot:spring-boot-configuration-processor:${springBoot_1_X_Version}")
9999

100-
compileOnly group: 'org.springframework.cloud', name: 'spring-cloud-consul-discovery', version: '2.1.1.RELEASE'
101-
compileOnly group: 'org.springframework.cloud', name: 'spring-cloud-starter-consul', version: '2.1.1.RELEASE'
100+
compileOnly group: 'org.springframework.cloud', name: 'spring-cloud-starter-consul-discovery', version: '2.1.1.RELEASE'
102101

103102

104103
}

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ apply plugin: 'org.springframework.boot'
1313
apply plugin: 'io.spring.dependency-management'
1414

1515

16-
//project.sourceSets.test{
17-
// java{
18-
// srcDir "${project(':grpc-spring-boot-starter-demo').getProjectDir()}/src/test/java"
19-
// }
20-
//}
16+
project.sourceSets.test{
17+
java{
18+
srcDir "${project(':grpc-spring-boot-starter-demo').getProjectDir()}/src/test/java"
19+
}
20+
}
2121
ext {
2222
set('springCloudVersion', "Greenwich.SR1")
2323
}
2424
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')

grpc-spring-boot2-starter-demo/src/test/java/org/lognet/springboot/grpc/ConsulRegistrationTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626

2727

2828
@RunWith(SpringRunner.class)
29-
@SpringBootTest(classes = DemoApp.class, properties = {"spring.cloud.config.enabled:false"})
29+
@SpringBootTest(classes = DemoApp.class, properties = {"spring.cloud.config.enabled:false",
30+
"spring.cloud.consul.discovery.enabled=true",
31+
"spring.cloud.service-registry.auto-registration.enabled=true"})
3032

3133
public class ConsulRegistrationTest {
3234
@ClassRule

grpc-spring-boot2-starter-demo/src/test/resources/application.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ management.endpoints.web.base-path=/
22
management.endpoints.web.exposure.include=*
33
spring.main.allow-bean-definition-overriding=true
44
spring.jmx.enabled=false
5+
spring.cloud.consul.discovery.enabled=false
6+
spring.cloud.service-registry.auto-registration.enabled=false

0 commit comments

Comments
 (0)