[Spring-error해결] Could not find method compile() 해결

99winnmin·2022년 7월 22일
0

Spring-error이슈

목록 보기
3/4
dependencies {
    implementation("$boot:spring-boot-starter-web")

    compile project(":comp-common-utils")
}

build.gradle을 새로고침하니 compile이라는 method가 없다며 오류가 났다.
https://stackoverflow.com/questions/23796404/could-not-find-method-compile-for-arguments-gradle
이유는 이곳에서 찾을 수 있었는데

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.

역시나 Gradle의 버전 문제였다. compile를 implementation 바꿔주니 해결되었다

profile
功在不舍

0개의 댓글