build 오류
-
[Tnote] error: variable userRepository not initialized in the default constructorT-note 2024. 2. 15. 10:05
문제 상황 프로젝트 clean- build 진행시 해당 에러 발생하면서 build 실패 error: variable userRepository not initialized in the default constructor 발생 원인 찾아본 바로는 먼저 lombok의 오류이다. gradle 버전에 따른 lombok 버전 오류인데, 나같은 경우는 잘 되어 있다. Gradle 5.x 미만 dependencies { implementation 'org.projectlombok:lombok' } Gradle 5.x 이상 dependencies { compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' } 나의 경우도 ..