运行 Grails 新项目时 PKIX 路径验证失败

PKIX path validation failed while running Grails new project

我已经创建了一个新的 Grails 4.0.2 应用程序并且运行它得到了

FAILURE: Build failed with an exception.

* What went wrong:
Could not download web.jar (org.grails.profiles:web:4.0.0)
> Could not get resource 'https://repo.grails.org/grails/core/org/grails/profiles/web/4.0.0/web-4.0.0.jar'.
   > Could not HEAD 'https://repo.grails.org/grails/core/org/grails/profiles/web/4.0.0/web-4.0.0.jar'.
      > sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed

* 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

CONFIGURE FAILED in 9s

有什么想法吗?

The JDK or certificate store you are using is out of date。更新到更新版本的 JDK 发行版或手动添加缺少的证书。

这是因为Sectigo's AddTrust External CA Root Expiring May 30, 2020