Skip to content

Commit

Permalink
use lombok plugin instead of direct dependency (#958)
Browse files Browse the repository at this point in the history
  • Loading branch information
lanwen committed Jul 11, 2021
1 parent d3c8213 commit ba6acf1
Show file tree
Hide file tree
Showing 19 changed files with 10 additions and 78 deletions.
5 changes: 0 additions & 5 deletions api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
sourceCompatibility = targetCompatibility = 8

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'

compile 'org.reactivestreams:reactive-streams'
compile 'io.cloudevents:cloudevents-api:1.2.0'

testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testCompile 'org.assertj:assertj-core'
}
5 changes: 0 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ bootJar {
}

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'

compile project(":api")
compile project(":protocol")

Expand All @@ -20,8 +17,6 @@ dependencies {

compile 'org.pf4j:pf4j'

testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'org.assertj:assertj-core'
testCompile 'org.awaitility:awaitility'
Expand Down
10 changes: 7 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ buildscript {
}

plugins {
id 'io.franzbecker.gradle-lombok' version '4.0.0' apply false
id "com.google.protobuf" version "0.8.10" apply false
}

Expand All @@ -33,6 +34,7 @@ allprojects {

configure(subprojects.findAll { !it.name.startsWith("examples/") }) {
apply plugin: 'io.spring.dependency-management'
apply plugin: 'io.franzbecker.gradle-lombok'
apply plugin: 'maven'
apply plugin: 'java'
apply from: "$rootDir/gradle/rerunTests.gradle"
Expand All @@ -46,6 +48,10 @@ configure(subprojects.findAll { !it.name.startsWith("examples/") }) {
]
}

lombok {
version = '1.18.20'
}

test {
useJUnitPlatform()

Expand Down Expand Up @@ -87,8 +93,6 @@ configure(subprojects.findAll { !it.name.startsWith("examples/") }) {
}

dependencies {
dependency 'org.projectlombok:lombok:1.18.12'

dependency 'org.pf4j:pf4j:3.1.0'

dependencySet(group: 'io.rsocket.rpc', version: '0.2.19') {
Expand All @@ -100,7 +104,7 @@ configure(subprojects.findAll { !it.name.startsWith("examples/") }) {

dependency 'com.google.protobuf:protoc:3.10.1'

dependency 'com.google.auto.service:auto-service:1.0-rc6'
dependency 'com.google.auto.service:auto-service:1.0'

// Override kafka-clients' version, otherwise it comes from Spring Boot
dependency 'org.apache.kafka:kafka-clients:2.3.1'
Expand Down
3 changes: 0 additions & 3 deletions client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ idea {
sourceCompatibility = targetCompatibility = 8

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'

protobuf project(":protocol")
compile project(":protocol")

Expand Down
4 changes: 1 addition & 3 deletions examples/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id "java"
id "idea"
id "com.google.protobuf"
id 'io.franzbecker.gradle-lombok'
}

protobuf {
Expand Down Expand Up @@ -46,9 +47,6 @@ repositories {
}

dependencies {
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'

compile 'org.testcontainers:kafka:1.15.3'

compile 'org.apache.commons:commons-math3:3.6.1'
Expand Down
6 changes: 2 additions & 4 deletions examples/plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id "java"
id "io.spring.dependency-management"
id 'io.franzbecker.gradle-lombok'
}

sourceCompatibility = targetCompatibility = 8
Expand Down Expand Up @@ -44,14 +45,11 @@ dependencyManagement {
entry "testing"
}

dependency 'org.projectlombok:lombok:1.18.12'
dependency 'com.google.auto.service:auto-service:1.0-rc6'
dependency 'com.google.auto.service:auto-service:1.0'
}
}

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
compileOnly "com.google.auto.service:auto-service"
annotationProcessor "com.google.auto.service:auto-service"

Expand Down
4 changes: 0 additions & 4 deletions plugins/dynamodb-positions-storage/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@ tasks.test.dependsOn(
)

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'com.google.auto.service:auto-service'
annotationProcessor 'com.google.auto.service:auto-service'

compileOnly project(":app")

compile 'software.amazon.awssdk:dynamodb:2.3.0'

testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testCompile project(":tck")
testCompile 'org.springframework.boot:spring-boot-test'
testCompile 'org.testcontainers:localstack'
Expand Down
4 changes: 0 additions & 4 deletions plugins/grpc-transport-auth/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ tasks.test.dependsOn(
)

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'com.google.auto.service:auto-service'
annotationProcessor 'com.google.auto.service:auto-service'

Expand All @@ -37,8 +35,6 @@ dependencies {
runtimeOnly 'io.netty:netty-tcnative-boringssl-static:2.0.25.Final'
testRuntimeOnly 'io.netty:netty-tcnative-boringssl-static:2.0.25.Final'

testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testCompile project(":tck")
testCompile project(":client")
testCompile 'org.springframework.boot:spring-boot-starter-test'
Expand Down
5 changes: 0 additions & 5 deletions plugins/grpc-transport/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ jar {
}

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'com.google.auto.service:auto-service'
annotationProcessor 'com.google.auto.service:auto-service'

Expand All @@ -75,9 +73,6 @@ dependencies {
compile 'io.grpc:grpc-netty'
compile 'io.grpc:grpc-services'

testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'

testCompile project(":app")
testCompile 'org.springframework.boot:spring-boot-test'
testCompile 'org.assertj:assertj-core'
Expand Down
4 changes: 0 additions & 4 deletions plugins/inmemory-positions-storage/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@ tasks.test.dependsOn(
)

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'com.google.auto.service:auto-service'
annotationProcessor 'com.google.auto.service:auto-service'

compileOnly project(":app")

testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testCompile project(":tck")
testCompile 'org.springframework.boot:spring-boot-test'
}
4 changes: 0 additions & 4 deletions plugins/inmemory-records-storage/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@ tasks.test.dependsOn(
)

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'com.google.auto.service:auto-service'
annotationProcessor 'com.google.auto.service:auto-service'

compileOnly project(":app")

testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testCompile project(":tck")
testCompile 'org.springframework.boot:spring-boot-test'
}
4 changes: 0 additions & 4 deletions plugins/kafka-records-storage/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@ tasks.test.dependsOn(
)

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'com.google.auto.service:auto-service'
annotationProcessor 'com.google.auto.service:auto-service'

compileOnly project(":app")

compile 'org.apache.kafka:kafka-clients'

testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testCompile project(":tck")
testCompile 'org.testcontainers:kafka'
testCompile 'org.springframework.boot:spring-boot-test'
Expand Down
4 changes: 0 additions & 4 deletions plugins/metrics/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,13 @@ jar {
}

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'com.google.auto.service:auto-service'
annotationProcessor 'com.google.auto.service:auto-service'

compileOnly project(":app")

compile 'io.prometheus:simpleclient_common:0.8.0'

testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testCompile project(":app")
testCompile 'org.springframework.boot:spring-boot-test'
testCompile 'org.assertj:assertj-core'
Expand Down
4 changes: 0 additions & 4 deletions plugins/pulsar-records-storage/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@ tasks.test.dependsOn(
)

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'com.google.auto.service:auto-service'
annotationProcessor 'com.google.auto.service:auto-service'

compileOnly project(":app")

compile 'org.apache.pulsar:pulsar-client-original:2.4.0'

testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testCompile project(":tck")
testCompile 'org.testcontainers:pulsar'
testCompile 'org.apache.pulsar:pulsar-client-admin-original:2.4.0'
Expand Down
4 changes: 0 additions & 4 deletions plugins/redis-positions-storage/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@ tasks.test.dependsOn(
)

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'com.google.auto.service:auto-service'
annotationProcessor 'com.google.auto.service:auto-service'

compileOnly project(":app")

compile 'io.lettuce:lettuce-core'

testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testCompile project(":tck")
testCompile 'org.springframework.boot:spring-boot-test'
testCompile 'org.testcontainers:testcontainers'
Expand Down
5 changes: 0 additions & 5 deletions plugins/rsocket-transport/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ jar {
}

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'com.google.auto.service:auto-service'
annotationProcessor 'com.google.auto.service:auto-service'

Expand All @@ -66,9 +64,6 @@ dependencies {
compile 'io.rsocket.rpc:rsocket-rpc-core'
compile 'io.rsocket:rsocket-transport-netty'

testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'

testCompile project(":app")
testCompile 'org.springframework.boot:spring-boot-test'
testCompile 'org.assertj:assertj-core'
Expand Down
5 changes: 0 additions & 5 deletions plugins/schema/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jar {
tasks.test.dependsOn(jar)

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'com.google.auto.service:auto-service'
annotationProcessor 'com.google.auto.service:auto-service'

Expand All @@ -25,9 +23,6 @@ dependencies {

compile 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml'

testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'

testCompile project(":app")
testCompile project(":tck")
testCompile 'org.springframework.boot:spring-boot-test'
Expand Down
3 changes: 0 additions & 3 deletions tck/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ sourceSets.main.resources.srcDir tasks.findByPath(":app:bootJar").outputs.files.
compileJava.dependsOn(tasks.findByPath(":app:bootJar"))

dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'

compile project(":app")
compile 'org.springframework.boot:spring-boot-loader'

Expand Down
5 changes: 0 additions & 5 deletions testing/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'

compile 'org.testcontainers:testcontainers'
compile 'org.testcontainers:kafka'

testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testCompile 'ch.qos.logback:logback-classic'
testCompile 'org.assertj:assertj-core'
testCompile 'org.awaitility:awaitility'
Expand Down

0 comments on commit ba6acf1

Please sign in to comment.