[JAVA] Lombok not working with Gradle5

When I try to use Lombok on macOS x IDEA x Gradle5 x Spring-boot2, I can compile but not build.

Annotation settings and Lombok Plugin settings have been completed, @ Slf4 is described, log.debug is described and no error occurs on the editor, but when building, the following error occurs.

/src/to/path/TestController.java:14:error:Can't find symbol
symbol:Variable log
place:Class TestController

Solved by adding the following settings to build.gradle

compileOnly group: 'org.projectlombok', name: 'lombok', version: "${lombokVersion}"
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: "${lombokVersion}"

reference: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003400520-Intellij-Idea-Lombok-Gradle-5-broken-build

Recommended Posts

Lombok not working with Gradle5
JUnit 5 gradle test fails with lombok annotation
Use ProGuard with Gradle
Lombok with VS Code
Integration Test with Gradle
Install Gradle with ubuntu16.04
DataNucleus starting with Gradle
Use WebJars with Gradle
Get started with Gradle
Use jlink with gradle
I dealt with Azure Functions not working in Java
Java multi-project creation with Gradle
Gradle + Kotlin-Generate jar with DSL
Remote debugging with Gradle test
Ruby Learning # 8 Working With String
Reduce verbose code with Lombok
Use log4j2 with YAML + Gradle
Hello World with SpringBoot / Gradle
NoSuchMethodException with lombok without default constructor
Build a Java project with Gradle
I tried using JOOQ with Gradle
Molecular phylogenetics exercise with docker (working)
Output test coverage with clover + gradle
that? WebView (swift) is not working.
Container does not start with docker-compose
Develop Processing with IntelliJ + Kotlin + Gradle
Spring Boot gradle build with Docker