When running Gradle task from IDEA:
console output looks like:
As one can see, bootRun
task failed. But I can't find the reason of the fail.
Is there a way to make Gradle output be displayed in Intellij Console when starting tasks from Gradle window?
IntelliJ IDEA usually provides lots of different ways to navigate to something we need. To open the Gradle tool window we can: Click on the quick access button in the bottom left, and click Gradle. Or, if you have the Tool Window Bars open already, you can click on the Gradle button in the top right.
Run tool window The Run tool window displays output generated by your application. If you are running multiple applications, each one is displayed in a tab named after the run/debug configuration applied. If you re-run an application, the new output overwrites the contents of the tab.
Press ⌃⌃ (macOS), or Ctrl+Ctrl (Windows/Linux), type "gradle" followed by the gradle task name or names. We can, of course, run Gradle commands from the terminal window inside IntelliJ IDEA. Open this with ⌥F12 (macOS), or Alt+F12 (Windows/Linux).
You can click the icon marked in the image bellow
Toggle tasks executions/text mode
That will switch to the console log of your build and you can see what went wrong.
UPDATE: As of 2019.2.3, you don't need to toggle task/console view as you can see now both at the same time:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With