question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gradle build failed at buildNeeded task.

See original GitHub issue

hi @trustin,

I was test a build for buildNeeded task, but failed it. Could you check it out?

Additionally, Eclipse builds fail too by the Circular dependency. Eclipse error keyword is “A cyclic dependency in eclipse”.

Workaround of eclipse build fail by cyclic dependency is changing build severity. Preferences > Java > Compiler > building > Build path problems. Circular dependencies : Change value Error to Warning.

Below is error messages of Gradle.

* What went wrong:
Circular dependency between the following tasks:
:core:buildNeeded
\--- :testing-internal:buildNeeded
     +--- :core:buildNeeded (*)
     +--- :testing:buildNeeded
     |    +--- :core:buildNeeded (*)
     |    \--- :testing-internal:buildNeeded (*)
     \--- :testing-internal:buildNeeded (*)

(*) - details omitted (listed previously)


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

BUILD FAILED in 3s

== BUILD FAILED ==

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
minwooxcommented, Aug 8, 2017

Well, they said this is the expected behavior. https://github.com/eclipse/buildship/issues/460

1reaction
trustincommented, Aug 8, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

Use case for the task buildNeeded? - Stack Overflow
Does not task 'build' solve the problem? The gradle documentation says: buildNeeded: Performs a full build of the project and all projects it ......
Read more >
The Java Plugin - Gradle User Manual
The Java plugin adds a number of tasks to your project, as shown below. ... Depends on: build , and buildNeeded tasks in...
Read more >
Build Failed on Gradle Task - Visual Studio Feedback
Have created pipeline Task for Android Build setup. Task file - task: Gradle@2 inputs: gradleWrapperFile: 'android/gradlew' workingDirectory: 'android/' ...
Read more >
Gradle Flashcards | Chegg.com
What build tasks are added by the java plugin? ... What buildNeeded does? ... are regular Gradle tasks scheduled to run even if...
Read more >
FileNotFoundException when running gradle build using a ...
The generateIndex task is defined in the root build.gradle file. If you run, from the root. gradle generateIndex buildNeeded. the failure will be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found