Как очистить вывод Gradle при ошибке? - PullRequest
0 голосов
/ 05 августа 2020

Я хотел бы показать только ошибку, без дополнительной информации, возможно ли это? Параметр -q не помогает.

Получите следующий результат:

$ gradle -q run
e: /src/main/kotlin/al/App.kt: (13, 15): Unresolved reference: name2

FAILURE: Build failed with an exception.

Вместо:

$ gradle -q run
e: /src/main/kotlin/al/App.kt: (13, 15): Unresolved reference: name2

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
...