Skip to content

Commit 2d38b45

Browse files
committed
Add basic support for spring properties
1 parent 6f65a08 commit 2d38b45

File tree

7 files changed

+55
-2
lines changed

7 files changed

+55
-2
lines changed

on-demand/on-demand-spring-boot-starter-grpc/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ dependencies {
1414

1515
api "io.grpc:grpc-netty:${grpcNettyVersion}"
1616

17+
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}"
18+
1719
testImplementation("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
1820
testImplementation project(":gcp:spring-boot-autoconfigure-gcp-test")
1921

on-demand/on-demand-spring-boot-starter-web/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ dependencies {
1414

1515
api ("org.codehaus.janino:janino:${janinoVersion}")
1616

17+
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}"
18+
1719
testImplementation("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
1820

1921
testImplementation project(':gcp:spring-boot-autoconfigure-gcp')

request-response/logbook-spring-boot-autoconfigure/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ dependencies {
77
api "org.zalando:logbook-spring-boot-starter:${logbookVersion}"
88

99
api("org.springframework.boot:spring-boot-autoconfigure:${springBootVersion}")
10-
testImplementation("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
1110

12-
}
11+
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}"
1312

13+
testImplementation("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
14+
}
1415

16+
tasks.named('compileJava') {
17+
inputs.files(tasks.named('processResources'))
18+
}
1519

1620

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"properties": [
3+
{
4+
"name": "entur.logging.request-response.logger.level",
5+
"type": "java.lang.String",
6+
"defaultValue": "info"
7+
},
8+
{
9+
"name": "entur.logging.request-response.logger.name",
10+
"type": "java.lang.String",
11+
"defaultValue": "no.entur.logging.cloud"
12+
},
13+
{
14+
"name": "entur.logging.request-response.max-size",
15+
"type": "java.lang.Integer"
16+
},
17+
{
18+
"name": "entur.logging.request-response.max-body-size",
19+
"type": "java.lang.Integer"
20+
}
21+
22+
]
23+
}

request-response/request-response-spring-boot-autoconfigure-grpc/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,11 @@ dependencies {
99
api ("org.springframework.boot:spring-boot-autoconfigure:${springBootVersion}")
1010
api ("org.springframework.boot:spring-boot-starter-logging:${springBootVersion}")
1111

12+
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}"
13+
1214
testImplementation("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
1315
}
16+
17+
tasks.named('compileJava') {
18+
inputs.files(tasks.named('processResources'))
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"properties": [
3+
{
4+
"name": "entur.logging.request-response.logger.level",
5+
"type": "java.lang.String",
6+
"defaultValue": "info"
7+
},
8+
{
9+
"name": "entur.logging.request-response.logger.name",
10+
"type": "java.lang.String",
11+
"defaultValue": "no.entur.logging.cloud"
12+
}
13+
]
14+
}

trace/server/correlation-id-trace-spring-boot-grpc/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ dependencies {
88

99
api "io.grpc:grpc-netty:${grpcNettyVersion}"
1010

11+
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}"
12+
1113
testImplementation("org.springframework.boot:spring-boot-starter-test:${springBootVersion}")
1214
testImplementation project(":gcp:spring-boot-autoconfigure-gcp-test")
1315

0 commit comments

Comments
 (0)