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
log.info("start");
^
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