Skip to content

Commit

Permalink
Simplify lombok
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielLiu1123 committed Aug 28, 2023
1 parent 3c6234d commit 028ec35
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 22 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ subprojects {
mavenBom "io.grpc:grpc-bom:${grpcVersion}"
}
}
dependencies {
compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
testCompileOnly("org.projectlombok:lombok")
testAnnotationProcessor("org.projectlombok:lombok")
}
// spotless
apply plugin: 'com.diffplug.spotless'
spotless {
Expand Down
3 changes: 0 additions & 3 deletions examples/json-transcoder/webflux/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ dependencies {
}
implementation(project(":grpc-starters:grpc-starter-webflux"))

compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")

testImplementation("org.springframework.boot:spring-boot-starter-test")
}

Expand Down
3 changes: 0 additions & 3 deletions examples/json-transcoder/webmvc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ dependencies {
implementation(project(":grpc-starters:grpc-server-boot-starter"))
implementation(project(":grpc-starters:grpc-starter-web"))

compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")

testImplementation("org.springframework.boot:spring-boot-starter-test")
}

Expand Down
2 changes: 1 addition & 1 deletion examples/tracing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("io.micrometer:micrometer-tracing-bridge-brave")
implementation("com.freemanan:httpexchange-spring-boot-starter:3.1.2")
implementation("com.freemanan:httpexchange-spring-boot-starter:3.1.3")

testImplementation(project(":grpc-starters:grpc-starter-test"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ dependencies {
// dynamic refresh configuration for grpc clients
compileOnly("org.springframework.cloud:spring-cloud-context")

compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")

testImplementation(project(":grpc-starters:grpc-server-boot-starter"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ dependencies {
compileOnly("org.springframework.boot:spring-boot-starter-jdbc")
compileOnly("org.springframework.boot:spring-boot-starter-data-redis")

compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")

testRuntimeOnly("io.grpc:grpc-netty-shaded")
Expand Down
2 changes: 0 additions & 2 deletions grpc-extensions/grpc-json-transcoder/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ dependencies {
compileOnly("org.springframework.boot:spring-boot-starter-web")
compileOnly("org.springframework.boot:spring-boot-starter-webflux")

compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")

testCompileOnly("org.springframework.boot:spring-boot-starter-web")
Expand Down
2 changes: 0 additions & 2 deletions grpc-extensions/grpc-metrics/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ dependencies {
compileOnly("io.micrometer:micrometer-registry-otlp")
compileOnly("org.springframework.boot:spring-boot-starter-aop")

compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")

testImplementation(project(":grpc-starters:grpc-starter-test"))
Expand Down
3 changes: 0 additions & 3 deletions grpc-extensions/grpc-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ dependencies {

annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")

compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")

testImplementation(project(":grpc-starters:grpc-boot-starter"))
}

Expand Down
2 changes: 0 additions & 2 deletions grpc-extensions/grpc-tracing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ dependencies {
compileOnly("io.micrometer:micrometer-tracing-bridge-otel")
compileOnly("io.micrometer:micrometer-tracing-bridge-brave")

compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")

testImplementation(project(":grpc-starters:grpc-starter-test"))
Expand Down
2 changes: 0 additions & 2 deletions grpc-extensions/grpc-validation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ dependencies {

compileOnly("build.buf.protoc-gen-validate:pgv-java-grpc:${pgvVersion}")

compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")

testImplementation("build.buf.protoc-gen-validate:pgv-java-grpc:${pgvVersion}")
Expand Down

0 comments on commit 028ec35

Please sign in to comment.