Could not resolve org.springframework.boot:spring-boot-gradle-plugin

A snippet of my build.gradle looks like this: plugins { id 'java' id 'org.springframework.boot' version '3.5.0' id 'io.spring.dependency-management' version '1.1.7' } java { toolchain { languageVersion = JavaLanguageVersion.of(17) } } ... While using VS Code, for reason unknown to me, the PROBLEMS tab shows the below: The supplied phased action failed with an exception. A problem occurred configuring root project 'springboot-challenge'. Could not resolve all artifacts for configuration 'classpath'. Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.5.0. Required by: root project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.5.0 Dependency requires at least JVM runtime version 17. This build uses a Java 11 JVM. There was no issue running ./gradlew build from the Terminal. ...

May 30, 2025