Intellij Idea not showing errors in Message Tool Window after Gradle build

前端 未结 4 995
无人共我
无人共我 2021-01-04 03:02

Intellij Idea 14.1.2, Gradle 2.3

I have a project with few java subprojects. Gradle builds works as expected but Intellij Idea does not capture the output of it and

4条回答
  •  悲&欢浪女
    2021-01-04 03:56

    Finally found the solution:

    For some reason when creating gradle project or module Idea does not add automatically the java-gradle facet.

    In order to get the errors in the Message Tool window you will have to add it to your module(s) like this:

    File -> Project structure -> Facets

    Click on the plus sign, select Java-gradle, select module, OK.

    Please note that if you start the build from the Gradle tool window (the right side pane) errors will not be shown in the Message window. You will have to use the "normal" build in the IDE, e.g. Build -> Compile module.

提交回复
热议问题