spring源码编译orm模块报循环依赖错误解决方法

Posted supress_Elon_Musk

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spring源码编译orm模块报循环依赖错误解决方法相关的知识,希望对你有一定的参考价值。

   根据别的大神的路线,一步步配置spring源码的时候,编译orm报如下错误:

 

  1.  
    BUILD FAILED in 3s
  2.  
    Circular dependency between the following tasks:
  3.  
    :spring-beans:compileGroovy
  4.  
    --- :spring-beans:compileJava
  5.  
    --- :spring-beans:compileKotlin
  6.  
    --- :spring-beans:compileGroovy (*)
  7.  
     
  8.  
    (*) - details omitted (listed previously)
     
    将gradle的版本由4.9改为4.4.1,放开
    compileGroovy.dependsOn = compileGroovy.taskDependencies.values - "compileJava"  就可以了

以上是关于spring源码编译orm模块报循环依赖错误解决方法的主要内容,如果未能解决你的问题,请参考以下文章