My Travle Map

[Error]Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method compile() for arguments [org.springframework.boot:spring-boot-devtools] on object of type org.gradle.api.internal.artifacts..

오선지♬ 2023. 10. 11. 20:22
728x90
반응형

https://velog.io/@g0709-19/Gradle-Could-not-find-method-compile-%ED%95%B4%EA%B2%B0-%EB%B0%A9%EB%B2%95

 

Gradle Could not find method compile() 해결 방법

gradle 7.0 부터 compile 명령은 삭제되었습니다.

velog.io

 

 

compile, runtime, testCompile, testRuntime은 Gradle 4.10(2018.8.27)에서 더 이상
사용되지 않습니다.
그리고 Gradle 7.0(2021.4.9)부터 삭제되었습니다.

필은 Gradle 7.3.3을 이용하고 삭제된 기체를 사용하던 중에 발생했습니다.
삭제된 네 개의 독립적인 implementation, runtimeOnly, testImplementation, testRuntimeOnly으로 교체되었습니다.
따라서 compile수정 implementation하여 오류를 해결했습니다.

728x90
반응형