how to make lombok work with gradle 6.3
$ gradle --version------------------------------------------------------------Gradle 5.0------------------------------------------------------------Build time: 2018-11-26 11:48:43 UTCRevision: 7fc6e5abf2fc5fe0824aec8a0f5462664dbcd987Kotlin DSL: 1.0.4Kotlin: 1.3.10Groovy: 2.5.4Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018JVM: 1.8.0_131 (Oracle Corporation 25.131-b11)OS: Mac OS X 10.13.5 x86_64
buildscript {
repositories {
mavenCentral()
}
ext {
lombokVersion = '1.18.4'
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.5.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
bootJar {
baseName = 'processor-rest-service'
version = '0.1.0'
}
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compileOnly("org.projectlombok:lombok:${lombokVersion}")
testCompileOnly("org.projectlombok:lombok:${lombokVersion}")
annotationProcessor("org.projectlombok:lombok:${lombokVersion}")
testAnnotationProcessor("org.projectlombok:lombok:${lombokVersion}")
compile(
"org.springframework.boot:spring-boot-starter-web",
"com.google.guava:guava:27.0.1-jre")
testCompile('org.springframework.boot:spring-boot-starter-test')
compile group: 'com.microsoft.azure', name: 'applicationinsights-web', version: '2.+'
}
sourceSets.main.resources {
srcDirs = ['src/main/java']
include '**/*.xml'
}