팀프로젝트를 위해 spring boot 빌드중에 자꾸 빌드가 안되고 있었음
start.spring.io로 만들었으며, 의존성도 문제 없고, gradle 버전과 java sdk버전 문제도 없었음
빌드가 계속 실패. 에러문구는 다음과 같았음.
A problem occurred configuring root project 'core'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.0.0.
Required by:
project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.0.0
> No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.0 was found. The consumer was configured to find a runtime of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.5.1' but:
jcenter 인증서가 22년 11월 25일 23:59 부로 만료되서 발생한 문제
검색해보니 인프런에 나와같은 사람이 한무데기...
근데 11월 25일 문제는 시간 꽤 많이 지난거같은데...
방법은 총 두가지
pluginManagement{
repositories{
mevenCentral()
gradlePluginPortal()
}
}
난 1번 방법으로도 안되서 2번방법까지 같이 사용해서 정상적으로 빌드 성공
구글링은 신이고 무적이다
근데 이거떄매 시간많이날렸는데 빡취넹