How to configure lombok and mapstruct with Gradle

I created a new Kotlin project and want to import my old project. Old configuration My new Kotlin project was configured to use Mapstruct and the build.gradle look like apply plugin: 'kotlin-kapt' dependencies { implementation "org.mapstruct:mapstruct:${mapstructVersion}" kapt "org.mapstruct:mapstruct-processor:${mapstructVersion}" } When I want to use lombok for the java project. I added the dependencies but it doesn’t work. implementation "org.projectlombok:lombok:${lombokVersion}" annotationProcessor "org.projectlombok:lombok:${lombokVersion}" The ./gradlew build just give the error of no Getter/Setter found, that means lombok was not processing when build.