gradle构建springboot错误,详细如下:
gradle command throwing below Exception:
Where: Build file '/path_to_project_gradle/build.gradle' line: 21
What went wrong: Plugin [id: 'org.springframework.boot', version: '2.1.4.RELEASE'] was not found in any of the following sources:
Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
Plugin Repositories (could not resolve plugin artifact 'org.springframework.boot:org.springframework.boot.gradle.plugin:2.1.4.RELEASE') Searched in the following repositories: Gradle Central Plugin Repository
解决办法
下载gradle所需版本到本地,根据下图所示进行设置
再次运行gradle,如下图所示,解决。