idea使用gradle编译spring源码不超过,求解决方案

环境:
1. idea版本2018.02
1. java版本 1.8.251或1.8.144
1. gradle版本 4.9
1. spring-5.1.x

但是每次在编译过程一半的时候都会打印这样的日志,然后就失败了,试过其他的方法都无法解决,有没有遇到过这样问题的,求解决方案。

> Task :buildSrc:compileJava NO-SOURCE
> Task :buildSrc:compileGroovy UP-TO-DATE
> Task :buildSrc:processResources UP-TO-DATE
> Task :buildSrc:classes UP-TO-DATE
> Task :buildSrc:jar UP-TO-DATE
> Task :buildSrc:assemble UP-TO-DATE
> Task :buildSrc:compileTestJava NO-SOURCE
> Task :buildSrc:compileTestGroovy NO-SOURCE
> Task :buildSrc:processTestResources NO-SOURCE
> Task :buildSrc:testClasses UP-TO-DATE
> Task :buildSrc:test NO-SOURCE
> Task :buildSrc:check UP-TO-DATE
> Task :buildSrc:build UP-TO-DATE

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\IdeaProjects\spring-framework-5.1.x\build.gradle' line: 13

* What went wrong:
Plugin [id: 'io.spring.dependency-management', version: '1.0.7.RELEASE', apply: false] 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 'io.spring.dependency-management:io.spring.dependency-management.gradle.plugin:1.0.7.RELEASE')
  Searched in the following repositories:
    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

CONFIGURE FAILED in 1m 8s
Plugin [id: 'io.spring.dependency-management', version: '1.0.7.RELEASE', apply: false] 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 'io.spring.dependency-management:io.spring.dependency-management.gradle.plugin:1.0.7.RELEASE')
  Searched in the following repositories:
    Gradle Central Plugin Repository
Open File

https://blog.csdn.net/baomw/article/details/83956300