Eclipse와 IntelliJ 관련
[Lombok] IntelliJ 에서 Lombok 사용
헤르메스의날개
2022. 3. 22. 16:00
728x90
1. Plugin 설치
[File] > [Plugins] > Lombok
2. Lombok Dependency 설정
Maven
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
Gradle
dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
}
3. Lombok requires annotation processing
Plugin 설치 후 Restart 되면, 우측하단에 알림을 선택.
수동으로 Enable 방법은
[File] > [Settings] > [Build, Execution, Deployment] > [Compiler] > [Annotation Processors] > Enable annotation processing
https://hermeslog.tistory.com/443
https://hermeslog.tistory.com/536?category=302347
728x90