일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- CS
- OS
- mysql
- java
- 알고리즘
- BFS
- javascript
- Algorithm
- 트러블슈팅
- Docker
- HTML
- 데이터베이스
- 영속성 컨텍스트
- Data structure
- db
- It
- jpa
- 운영체제
- 트랜잭션
- 완전탐색
- redis
- CSS
- 자료구조
- nosql
- 프로그래머스
- 백준
- websocket
- spring
- DFS
- PYTHON
Archives
- Today
- Total
If at first you don't succeed, try again
[트러블슈팅] Gradle 버전 문제 본문
* 개요
프로젝트의 gradle을 설정하던 중, build가 되지 않는 문제가 발생했다.
buildscript {
ext {
springBootVersion = '2.1.7.RELEASE'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-web')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
Gradle Could not find method compile() 이라는 에러가 발생했고, 구글링 하여 찾아보니 compile, runtime, testCompile, testRuntime 은 Gradle 4.10 (2018.8.27) 이래로
deprecate 되었고 Gradle 7.0 (2021.4.9) 부터 삭제되었다고 한다. 필자의 gradle 버전이 4.10보다 더 높다고 판단하여 compile, testCompile을 각각 implementation, testImplementation으로 수정하여 문제를 해결하였다.
'개발 > 트러블슈팅' 카테고리의 다른 글
[트러블슈팅] 커서 기반 무한 스크롤의 댓글 수, 좋아요 수를 조회하는 쿼리에서 발생했던 성능 문제(feat. N+1) (0) | 2025.06.04 |
---|---|
[트러블슈팅] 엔티티에 @ToString 사용으로 인한 순환참조(feat. JPA) (0) | 2025.06.04 |
[트러블슈팅] DTO 필드 변수의 prefix 이슈 (0) | 2025.06.04 |
[트러블슈팅] 게시물 작성에서 사진 업로드 시 발생했던 문제 (1) | 2025.06.04 |