corda / cordapp-template-kotlin

A Kotlin CorDapp Template. Extend it via the Hello, World tutorial: https://docs.corda.net/hello-world-introduction.html
118 stars 149 forks source link

Circular dependency on gradle build #41

Closed leric closed 6 years ago

leric commented 6 years ago

I'm following the instructions in readme, clone the repo, on branch release-V3, run ./gradlew buildNodes, and got this error:

FAILURE: Build failed with an exception.

* What went wrong:
Circular dependency between the following tasks:
:classes
\--- :compileJava
     +--- :compileKotlin
     |    \--- :jar
     |         +--- :classes (*)
     |         \--- :compileKotlin (*)
     \--- :jar (*)

(*) - details omitted (listed previously)

Had the ~/.gradle folder cleaned, running on JDK 1.8.0_181,MacOS 10.13.6

Thanks

leric commented 6 years ago

I loved "cordapp" so much that I named the project "cordapp", the name conflict caused circular dependency, never mind

bersling commented 5 years ago

@leric How did you figure that out from the error message? We have basically exactly the same error:

:lap:server:classes
\--- :lap:server:compileJava
     +--- :lap:server:compileKotlin
     |    \--- :lap:server:jar
     |         +--- :lap:server:classes (*)
     |         +--- :lap:server:compileKotlin (*)
     |         \--- :lap:server:inspectClassesForKotlinIC
     |              \--- :lap:server:classes (*)
     \--- :lap:server:jar (*)

but our root project has a pretty unique name.

Also, the issue didn't exist with Gradle 4, but it does with Gradle 5.