在 Intellij IDEA 2016.1.1的控制台上显示 Gradle 输出

当从 IDEA 运行 Gradle 任务时:

IDEA Gradle window

控制台输出如下:

enter image description here

正如我们所看到的,bootRun任务失败了,但是我找不到失败的原因。

当从 Gradle 窗口开始任务时,有没有办法在 Intellij 控制台中显示 Gradle 输出?

28518 次浏览

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

In IDEA 2019.2.3 the icon has change. See circled icon in image:

enter image description here

Alright, I know it's so obvious that you don't need to tell about it. But I've spent the whole day not getting what's going on)

If you cannot find logs, and see only Gradle steps, probably you just have to expand the logs window. Somehow it was minimized without my notice.

Added a screenshot just in case. Just drag the mouse pointer to the left on the spot circled in red.

enter image description here