Gradle 4.0 does not display completed tasks on the command line

When I run gradle build or any other gradle command from the terminal, I cannot see recently completed tasks and their status (for example :testClasses UP-TO-DATE ), but only BUILD SUCCESSFUL :

Command line behavior

However, everything is fine when I run the build command from the Eclipse IDE using the gradle plugin:

Behavior in the Eclipse IDE

I am using gradle 4.0. Any suggestions for fixing it?

+7
java terminal gradle
source share
1 answer

I understood the question. If you run gradle --help- , you may notice the --console in the options list, which is responsible for the output during the gradle task. Since the option gradle v4.0 console is set by default by default, which causes the output that I get using the terminal. Basically, using --console=plain fixes the problem (for example: gradle --console=plain build ).

+10
source share

All Articles