본문 바로가기
Framekwork/SPRING

[스프링 부트 3 백엔드 개발자 되기] p.77 dependencies - lombok 오류

by 아이엠제니 2024. 8. 5.

 


 

책 <스프링 부트 3 백엔드 개발자 되기> - 신선영
초판 1쇄 2023.5.26

springboot ver: 3.3.0
JDK: 17

 

 

 

p.77

build.gradle

 

수정 전


dependencies {
... 생략 ...
    implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
    runtimeOnly 'com.h2database:h2' // 인메모리 데이터베이스
    compileOnly 'org.projectlombok:lombok' // 롬복
    annotationProcessor 'org.projectlombok:lombok'
}

 

lombok 다운로드 시 오류 발생

 

오류 내용

Build file 'D:\spring-blog\spring-blog\build.gradle' line: 21

A problem occurred evaluating root project 'spring-blog'.
> Supplied String module notation 'org.projectlombok.lombok' is invalid. Example notations: 'org.gradle:gradle-core:2.2', 'org.mockito:mockito-core:1.9.5:javadoc'.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

 

 

 

수정 후


dependencies {
... 생략 ...
    implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
    runtimeOnly 'com.h2database:h2' // 인메모리 데이터베이스
    compileOnly 'org.projectlombok:lombok:1.18.24' // 롬복
    annotationProcessor 'org.projectlombok:lombok:1.18.24'
}

lombok 버전 설정을 해준 후에, reload를 하니 오류가 사라졌다.

 

 

BUILD SUCCESSFUL.

 

 

 

 

 

300x250