Gradle build failing with error: plugin was not found in any of the following sources

Gradle build failing with error: plugin was not found in any of the following sources

今天没有对代码进行任何更改,但是 gradle 构建停止工作并出现以下错误

FAILURE: Build failed with an exception.

* Where:
Build file '/data/code/.../build.gradle' line: 2

* What went wrong:
Plugin [id: 'org.springframework.boot', version: '2.5.0-SNAPSHOT'] 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.5.0-SNAPSHOT')
  Searched in the following repositories:
    maven(https://repo.spring.io/milestone)
    maven2(https://repo.spring.io/snapshot)
    Gradle Central Plugin Repository

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

尝试查看网络到达spring网站是否有任何问题,curl显示错误如下

curl https://repo.spring.io/snapshot
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

似乎 spring 网站证书是由 Digicert 于“2021 年 7 月 20 日星期二 5:30:00 上午”颁发的,可能是我的 ubuntu 16.04 系统缺少 CA 证书。

如何解决这个问题?

看起来 spring 存储库已关闭 https://www.isitdownrightnow.com/repo.spring.io.html This is causing us a huge amount of pain and it is not reported on https://status.spring.io/