본문 바로가기

Spring

Could not find org.projectlombok:lombok:.Required by: project : 에러 해결

Could not find org.projectlombok:lombok:.
Required by:
    project :

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

위 에러를 해결해보자

 

상황

dependencies {
	...
    implementation 'org.projectlombok:lombok'
}

해결

dependencies {
	...
    implementation 'org.projectlombok:lombok:1.18.22'
}

이렇게 버전을 추가해주면 해결된다.

 

참고로 나의 gradle 버전은 7.0.2 이다.

gradle 버전은 gradle/wrapper/gradle-wrapper.properties 파일에서 distributionUrl 에서 확인할 수 있다.