在 IntelliJ 中,当我对从 start.spring.io 下载的新项目进行干净构建时,会出现错误。
我已经安装了直接从 IntelliJ 下载的 Java 17 JDK (Amazon Corretto)
在终端中,运行命令:./gradlew clean build
导致以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'learn-spring-framework'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.0.1.
Required by:
project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.0.1
> No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.1 was found. The consumer was configured to find a runtime of a library compatible with …Run Code Online (Sandbox Code Playgroud)