관리 메뉴

JIE0025

[SpringBoot] build.gradle 설정 오류 본문

백엔드/이슈, 트러블슈팅

[SpringBoot] build.gradle 설정 오류

Kangjieun11 2022. 12. 12. 00:42
728x90



build.gradle에 간단한 설정을 추가해줬는데 오류가 났다.


✅ Error

Could not find method compile() for arguments
인수에 대한 메소드 compile()을 찾을 수 없습니다.

✅ Solution

결론은 gradle 버전 문제이다.
다음 메소드로 대체해 사용하면 해결할 수 있다.

compile()   >>  implementation()
testCompile()  >> testImplementation()