Home > Back-end >  Spring5.0. After the X-ray source code to compile, spring - beans project running compileTestJava ci
Spring5.0. After the X-ray source code to compile, spring - beans project running compileTestJava ci

Time:09-29


Circular dependency between the following tasks:
: spring - beans: compileGroovy
\ - : spring - beans: compileJava
\ - : spring - beans: compileKotlin
\ - : spring - beans: compileGroovy (*)

CodePudding user response:

To ask I also met commented out in the spring - beans also not is what ah

CodePudding user response:

To ask I also met commented out in the spring - beans, have to solve? Online to see three lines to add annotations, and complains/spring beans/SRC/main/kotlin/org/springframework/beans/factory/ListableBeanFactoryExtensions kt: (67), 37) : Unresolved reference: ListableBeanFactory

CodePudding user response:

Circular dependency between the following tasks:
: spring - beans: compileGroovy
\ - : spring - beans: compileJava
\ - : spring - beans: compileKotlin
\ - : spring - beans: compileGroovy (*)

The same error: how do you solve

CodePudding user response:

Modify the spring - beans. Spring - beans. Gradle file
Modify the last three behavior is as follows:
 
Def deps=compileGroovy. TaskDependencies. ImmutableValues + compileGroovy. TaskDependencies. MutableValues
CompileGroovy. DependsOn=deps - "compileJava
"CompileKotlin. DependsOn (compileGroovy)
CompileKotlin. Classpath +=files (compileGroovy destinationDir)

CodePudding user response:

refer to 6th floor Zzzj_1233 response:
modify the spring - beans. Spring - beans. Gradle file
Modify the last three behavior is as follows:
 
Def deps=compileGroovy. TaskDependencies. ImmutableValues + compileGroovy. TaskDependencies. MutableValues
CompileGroovy. DependsOn=deps - "compileJava
"CompileKotlin. DependsOn (compileGroovy)
CompileKotlin. Classpath +=files (compileGroovy destinationDir)


Good good, you this is right

CodePudding user response:

reference WXWRJGCS reply: 3/f
to ask I also met commented out spring - beans, have to solve? Online to see three lines to add annotations, and complains/spring beans/SRC/main/kotlin/org/springframework/beans/factory/ListableBeanFactoryExtensions kt: (67), 37) : Unresolved reference: ListableBeanFactory



To ask how to solve?
  • Related