Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 카카오
- java leetcode
- 백준
- 프로그래머스 java
- 프로그래머스
- 백준 16935
- 인텔리제이 에러
- 리트코드 1557
- java 프로그래머스
- 백준 18222
- 리트코드 자바
- 그래프 자바
- 코테
- 파이썬
- BFS
- dfs
- daily challenge
- leetcode 1721
- DP
- 스택
- leetcode
- 리트코드
- 자바
- 분할정복
- Java
- 자바 5464
- 자바 리트코드
- 구현
- 코딩테스트
- 스프링 에러
Archives
- Today
- Total
레벨업 일지
[에러] Compile() 문제 본문
문제
- org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method compile() for arguments [org.springframework.boot:spring-boot-starter-web] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
- compile()메소드를 찾지 못하는 에러가 발생하였다.
원인
다음 글을 참고하였다.
https://stackoverflow.com/questions/23796404/could-not-find-method-compile-for-arguments-gradle
Could not find method compile() for arguments Gradle
Looked around for this solution for much too long now, and I'm not sure if I missed it or just misstyped something, but my Gradle script will not compile. I am migrating to Gradle, and am very new ...
stackoverflow.com
compile, runtime, testCompile, testRuntime 4가지 configuration은 2018년 8/27 Gradle 4.10 버전부터 사용됐으며 2021 4/09 Gradle 7.0 버전부터 제거됐다.
4가지 메소드는 각각 implementation, runtimeOnly, testImplementation, testRuntimeOnly 으로 교체됐다.
해결
다음 코드와 같이 compile 은 implementation 으로. testCompile은 testImplementation 으로 고쳐서 해결
dependencies {
implementation('org.springframework.boot:spring-boot-starter-web')
testImplementation('org.springframework.boot:spring-boot-starter-test')
}
'JAVA > spring' 카테고리의 다른 글
[에러] cannot resolve symbol 'validation' (1) | 2023.02.07 |
---|---|
[에러] error: variable name not initialized in the default constructor (0) | 2023.02.07 |
[에러] failed :compileJava (0) | 2023.02.07 |
[Web] Naming Convention 이란? (0) | 2023.01.30 |
[IntelliJ/에러] 자바 스프링 초기 환경 설정 에러project JDK is not defined (1) | 2023.01.24 |
Comments