
Spring Initializr를 이용하여 Spring Boot 3.0.2 프로젝트를 생성하던 도중 다음과 같은 에러가 발생했습니다.
A problem occurred configuring root project 'java-test-practice'.
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
...
해당 에러는 스프링부트 3.0.0 이상부터는 자바 17이 필요하지만 자바 11로 프로젝트를 생성하여 발생한것으로 보입니다.
부트 버전을 2.7.8로 내려서 다시 프로젝트를 생성해보니 이상 없이 빌드되었습니다.
만약 3.0.0 이상 버전을 사용하시려면 사용하는 자바 버전을 17 이상으로 사용하시면 됩니다.
