We’re hitting a problem where the gradle output is not being flushed often enough. Something in our build is hanging up, but the last log messages are from an earlier step in the task.
It seems to be buffered at around 4K, or about 25 lines. This makes up to the last 24 lines of log output not visible if a process hangs.
Is it possible to force a flush after a timeout in addition to a buffer full?
If not, what’s the recommended way to override this buffering behavior?