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