spring源码编译各种错误解决


  1,编译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"  就可以了


    2,缺少InstrumentationSavingAgent类错误
    在自己的module中引入,compile(project(":spring-instrument"))的依赖




免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM