본문 바로가기
Develop/Trouble Shooting

Gradle - compile 에러

by jaeyoungb 2022. 7. 26.

build.gradle 의 dependencies 에서

 

compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('mysql:mysql-connector-java')

위 두 코드를 입력하는 과정에서,

 

Could not find method compile() for arguments [org.springframework.boot:spring-boot-starter-data-jpa] ~

 

이라는 에러가 떴다.

 

구글링을 해보니, Gradle 7.0 버전 이후로는 compile 이라는 명령은 없어졌다고 한다.

 

compile 대신 implementation 이라는 명령을 써야했다.