차밍이

[Spring-boot] Gradle Could not find method compile() 오류 해결 방법 본문

Java/Spring

[Spring-boot] Gradle Could not find method compile() 오류 해결 방법

2022. 7. 20. 20:02
반응형

오류 메세지

Could not find method compile() for arguments

Count not find method compile() 에러가 계속 발생되는 문제가 발생했다.

 

오류 해결 방법

stackoverflow 에 검색했더니 다음과 같이 나왔다.

compile, runtime, testCompile, and testRuntime 는 Gradle 4.10 부터 없어졌다고 한다.

대신 implementation, runtimeOnly, testImplementation, and testRuntimeOnly를 사용하라고 한다.

 

원문

Note that the compile, runtime, testCompile, and testRuntime configurations introduced by the Java plugin have been deprecated since Gradle 4.10 (Aug 27, 2018), and were finally removed in Gradle 7.0 (Apr 9, 2021).
The aforementioned configurations should be replaced by implementation, runtimeOnly, testImplementation, and testRuntimeOnly, respectively.

 

링크 : https://stackoverflow.com/questions/23796404/could-not-find-method-compile-for-arguments-gradle

 

 

반응형

관련된 글 보기

Comments