책 <스프링 부트 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
'SOMEDAY > JAVA' 카테고리의 다른 글
[스프링 부트 포토그램] 1강 ~7강 환경설정 완료 (0) | 2024.08.09 |
---|---|
[스프링 부트 포토그램] Spring Boot PhotoGram 클론 코딩 완료 (0) | 2024.08.08 |
[SPRING BOOT] 즐겨찾기 추가/해제 코드 변천사 (0) | 2024.07.23 |
[JAVA] return 시, 중간 변수 사용에 대한 궁금증 (0) | 2024.07.23 |
[SPRING BOOT] 즐겨찾기 추가 및 해제 (삭제) method 분리 (0) | 2024.07.19 |