Debugging failed build?


(coolnodje) #1

I’ve got a config that compiles fine but refuses to run.
The problem is, I’m unable to get any information as for why it fails:

``
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:findMainClass
:bootRun

. ____ _ __ _ _
/\ / __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ’ / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
’ |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v1.4.1.RELEASE)

:bootRun FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:bootRun’.

Process ‘command ‘/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/bin/java’’ finished with non-zero exit value 1

  • Try:
    Run with --info or --debug option to get more log output.
    ``
    using --stacktrace, --info or --debug is not helpful as it gives information about gradle itself.

What I need is to get the output of the starting application.

As I’m a newcomer to Gradle, I don’t really know if this is the standard behaviour (in which case there’s probably a way to get more information) or if this could be a logging library conflict.

I know from previous similar errors that the problem lies in a dependency conflict.
I’m using gradle dependencies --configuration runtime to get the dep resolution result, but I can’t see anything wrong.

Thanks for any help


(coolnodje) #2

Unfortunately, I had to revert to a Maven configuration to be able to display the runtime errors. I’ve fixed them, and I can start the project with Gradle now, but I still need a way to display exceptions and logs during runtime.

How can I do this?