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'
}

Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source