Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display Gradle output in console in Intellij IDEA 2016.1.1

When running Gradle task from IDEA:

IDEA Gradle window

console output looks like:

enter image description here

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?

like image 542
Aliaxander Avatar asked May 02 '16 08:05

Aliaxander


People also ask

How do I view Gradle in IntelliJ?

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.

How do I get output in IntelliJ?

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.

How run Gradle project in Terminal using IntelliJ?

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).


1 Answers

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.

enter image description here

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:

enter image description here

like image 118
Vojtech Ruzicka Avatar answered Sep 24 '22 01:09

Vojtech Ruzicka