记录使用gradle编译spring源码时发生的错误

D:\Program Files\spring-framework\spring-beans>gradle cleanidea eclipse

Starting a Gradle Daemon, 4 incompatible and 1 stopped Daemons could not be reused, use --status for details

FAILURE: Build failed with an exception.

* Where:

Build file 'D:\Program Files\spring-framework\spring-beans\spring-beans.gradle' line: 30

* What went wrong:
A problem occurred evaluating project ':spring-beans'.
> No such property: values for class: org.gradle.api.internal.tasks.DefaultTaskDependency

  Possible solutions: values

* 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 27s


错误如图所示:

记录使用gradle编译spring源码时发生的错误_第1张图片

解决方案:

找到错误提示的文件(spring-beans.gradle),编辑,把最后三行注释掉,然后再使用gradle cleanidea eclipse命令重新执行,我就是这么解决的。至于那三行会有什么影响暂时不清楚,起码能够通过编译,可以导入到eclipse中并查看源码。

记录使用gradle编译spring源码时发生的错误_第2张图片

图片可能有点看不清,能明白意思就成。

你可能感兴趣的:(spring源码记录)