[error] IntelliJ build 오류 / Could not resolve all artifacts for configuration ':classpath'

·2022년 11월 5일
0

오류해결모음

목록 보기
17/19

A problem occurred configuring root project 'study-springboot-book'.
Could not resolve all artifacts for configuration ':classpath'.
Could not find org.springframewor mk.boot:spring-boot-gradle-plugin:2.1.7.RELEASE.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/org/springframewor mk/boot/spring-boot-gradle-plugin/2.1.7.RELEASE/spring-boot-gradle-plugin-2.1.7.RELEASE.pom
- https://repo.maven.apache.org/maven2/org/springframewor mk/boot/spring-boot-gradle-plugin/2.1.7.RELEASE/spring-boot-gradle-plugin-2.1.7.RELEASE.jar
Required by:
project :

오랜만에 인텔리제이를 업데이트하고 프로젝트를 열었는데 이런 오류가 생겼다.
build.gradle 파일에서 dependencies > classpath 부분에서 문제가 있는 것 같았는데
gradlew --build 명령어로 다시 다운받으면 된다는 글을 보고 명령어를 입력했다가 아래처럼 나왔다.

기본 클래스 org.gradle.wrapper.GradleWrapperMain을(를) 찾거나 로드할 수 없습니다.

그래서 찾아보다가 깃 관련 얘기가 있어 혹시나 하고 커밋 탭으로 가보니까
build.gradle 파일에 dependencies > classpath 부분이 떡하니 바뀌어 있는 것...(?)
왜 때문인지는 모르겠지만 classpath 경로 부분에 뭐가 더 추가가 되어 있었다.
그래서 기존 경로로 다시 수정해줬더니 해결

0개의 댓글