When I run gradle build
or any other gradle command from terminal I can't see recently executed tasks and their status (for example :testClasses UP-TO-DATE
), but only BUILD SUCCESSFUL
:
However everything is fine when I run build command from eclipse IDE using gradle plugin:
I'm using Gradle 4.0. Any suggestions how to fix it?
You can do gradle -Dtest. single=ClassUnderTestTest test if you want to test single class or use regexp like gradle -Dtest. single=ClassName*Test test you can find more examples of filtering classes for tests under this link.
View -> Tool Windows -> Build. There is small "ab" button on the left panel. All gradle logs for current build are there.
I figured out the issue. If you execute gradle --help-
you may notice the --console
option in the options list which is responsible for output during gradle task execution. Since gradle v4.0 console option is set to rich by default which causes the output I get using terminal. Basically using --console=plain
fixes the issue (for example: gradle --console=plain build
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With