当从 IDEA 运行 Gradle 任务时:
控制台输出如下:
正如我们所看到的,bootRun任务失败了,但是我找不到失败的原因。
bootRun
当从 Gradle 窗口开始任务时,有没有办法在 Intellij 控制台中显示 Gradle 输出?
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:
In IDEA 2019.2.3 the icon has change. See circled icon in image:
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.